Advertisement
Guest User

setting up composer autoloader in eden-php framework

a guest
Oct 31st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.54 KB | None | 0 0
  1. setting up composer loader in eden-php
  2. -------------------------------
  3.  
  4. 1. create a new folder app
  5. 2. put a file bootstrap.php inside folder app
  6. 3. put `include_once '../app/bootstrap.php';` in web/index.php file
  7. 4. create a composer.json file with what you need.
  8. 5. run php composer.phar / (or if you have installed composer) composer install
  9. 6. in app/bootstrap.php write the following `<?php require_once '/path/to/your/vendor/autoload.php/file'` - replace the path to your vendor autoload
  10. 7. check that everything runs okay.
  11. 8. Profit!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement