I honestly believe, you can use composer autoloader and symfony class loader and http-foundation.
Supposed we have our development environment in localhost/myapp/, and we are running xampp or wampp on windows. We can easily solve the autoload problems in two ways. This is just an example. If you will running this on linux, then just add $ in front of the composer command that simple
First install the composer..,
1. Test the composer after installation and make it is working. Open the command prompt, and then type
composer
it should return the version and info. about your composer version.
Now let us create our simple application using composer autoload. Create the directory called myapp in your xampp/htdocs/myapp. Inside the myapp directory create another directory called application.
Open your text editor or any suitable source code editor and then paste codes below, and save as composer.json
{ "require": { "symfony/class-loader": "2.4.*@dev", "symfony/http-foundation": "2.3.*@dev", "phpunit/phpunit": "3.7.*", "swiftmailer/swiftmailer": ">=4.2.0,<4.3-dev" }, "minimum-stability": "dev" }
I added some common vendors found on PHP MVC framework like Laravel, PPI and Kohana. I mean this is an actual build if you want to create your own framework.
I also added phpunit for you to experiment. If you will be applying for a 6 figure job as a developer, you must know all this, otherwise you will be debugging other people's codes for a long long time.
Go back to your command prompt and type
cd c:/xampp/htdocs/myapp
once you are …