News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Simas Toleikis's Blog:
Idea for a PHP Validator
October 08, 2010 @ 13:48:26

Simas Toleikis has posted an interesting idea for a validator that would look at the incoming source of an application/script and determine what the requirements for it might be.

How about creating a PHP code validator? Got this idea by looking at tokenizer and reflection extensions. I doubt I will find the time to work on this myself but then someone else might be interested to pick it up. From user's point of view there will be a form made of a large textarea box and a single file upload input. One could paste code snippet on that textarea or upload a ZIP'ed source code archive (or a single .php file) for validation.

His proposed result would show a list of "Required Extensions", PHP versions, E_STRICT compatibility and possibly total lines of code in the project. He points out a few issues that might pop up in writing such a tool such as the requirement for it to be able to use the tokenizer extension itself (a sort of catch-22 since it's not always installed).

0 comments voice your opinion now!
validator idea requirements application reflection tokenizer


blog comments powered by Disqus

Similar Posts

VG Tech: Inheriting Configuration in Zend Framework 2 Applications

Mauricio Cuenca's Blog: Two (or more) Zend Framework projects on a shared host

Smashing Magazine: Common Security Mistakes in Web Applications

IBM developerWorks: Building the DB2 Health Monitor Sample Application for PHP (Part 2)

Job Posting: ManicMelon.com Seeks Mid-Senior LAMP Web Application Developer (Overland Park, KS)


Community Events

Don't see your event here?
Let us know!


composer part2 community opinion application project example laravel podcast php7 symfony yii2 series framework language configure api introduction list interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework