Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. root
  2. ├── src
  3. │ └── Vendor
  4. │ ├── Lib
  5. │ │ └── Class.php
  6. │ └── OtherLib
  7. │ └── OtherClass.php
  8. ├── composer.json
  9. └── index.php
  10.  
  11. "autoload": {
  12. "psr-0": {
  13. "Vendor": "src/"
  14. }
  15. },
  16.  
  17. namespace VendorLib;
  18.  
  19. class Class
  20. {
  21.  
  22. }
  23.  
  24. include('vendor/autoload.php');
  25.  
  26. use VendorLibClass;
  27. $c = new Class();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement