beryllium / beautifulphp

They should have sent a PHPoet
http://beautifulphp.com
MIT License
19 stars 6 forks source link

Seeking Code Examples #1

Open beryllium opened 8 years ago

beryllium commented 8 years ago

I am seeking a handful of code examples - things (horrors!) that people have encountered in the wild - preferably with matching examples of how they were modernized, so BeautifulPHP.com can become a handy open-source guide to PHP modernization with side-by-side views of "pre-historic PHP" and "modern PHP".

It would be best if each example would highlight one or two (at most) things that have been improved in PHP either from changes to the language itself, cooperation of the community, improvements in the engineering process, or even a result of PHP-FIG standardization.

My ultimate goal is for people who are in "crunch mode" or just don't know about modern PHP will see the site and it will help them understand that there are new and easy ways to build maintainable, tested, and secure projects with PHP. We can always use more sites touting a modern PHP approach, to try and further combat outdated information that is crusted around the pilings of the Internet like barnacles on a pier.

If you can provide some examples, that would be great! Thanks!

beryllium commented 7 years ago

So far I've got these stubs/writing prompts:

Please comment if you can think of additional ones or refinements of the ones above. I think in the interests of moving forward, not backwards, the side-by-side idea should largely be discarded - so the site will be more like a blog with guest posts.

azdanov commented 6 years ago

PHP Delusions website has some examples that I've found insightful.

Apart from that as a beginner I'm looking forward to learning proper PHP.