In the world of PHP programming a set of trends are massively being propagated by some people (in their books and on websites) as "Modern PHP" while all other approaches are frowned upon as backwards, stupid, or just plain wrong.
This is the Github repository for the website PHP - The Wrong Way that has been created in an attempt to present a pragmatic view on PHP programming. A view dictated by experience and practical consequence rather than popular trends, theory, or academic dogma.
The website is a living document and will continue to be updated with more information as it become available.
Feel free to participate!
Contribute on GitHub.
If you have a question or just want to express your mind, feel free to use the "Issues" tab for that. Please notice that we have already discussed a lot of the concepts expressed in this document so take a look at the closed issues before you submit something.
- Clone and edit.
- Submit pull request for consideration.
- Clone.
- Create a subdirectory of your language in the
docs
directory using the IETF Language Tag. If I, as an example, are going to make a Danish translation, I create a subdirectory namedda
indocs
. - Copy
docs/index.html
into the newly created subdirectory of your language and translate that. - Edit the main
index.html
, which is the English one, and edit the otherindex.html
files in the different language subdirectories and insert the relevant link to your translation under thetranslations
heading. Also update the "last updated" date in each file you touch. - Copy the image file
docs/img/deviant-code-1000px-en.png
to a filename that matches your language. Again as an example, I would make a file calleddocs/img/deviant-code-1000px-da.png
for Danish. - Edit the image file and translate the text for the image. If you cannot edit the image file, just leave a text file in the main directory with a text translate of the text from the image. Name it something like
danish-text-for-image.txt
. - Submit pull request.