faloafrican.blogg.se

Best php ide 2016
Best php ide 2016







best php ide 2016

Then we declared the namespace HelloWorld in our greetings.php file. Remember the directory stucture src/HelloWorld and the require statement in the composer.json file? In our composer.json we told the autoloader to expect a psr-0 directory structure and that our code would be in src.

best php ide 2016

It is beyond the scope of this article to discus how the autoloader works, just that it does and how to use it.

best php ide 2016

Like I said before, autoloading and composer give us the handy use and namespace keywords. '/./vendor/autoload.php' use HelloWorld\Greetings echo Greetings :: sayHelloWorld ()







Best php ide 2016