psr-0 Questions
7
Solved
I understand that you can use either a PSR standard to locate files, or tell composer a directory to scan for classes. The documentation recommends using the PSR-4 standard. There is also an option...
Bade asked 2/4, 2014 at 6:42
2
Solved
How can I autoload helper functions (outside of any class)? Can I specify in composer.json some kind of bootstrap file that should be loaded first?
Jammiejammin asked 11/6, 2014 at 19:29
5
Solved
Recently I've read about namespaces and how they are beneficial. I'm currently creating a project in Laravel and trying to move from class map autoloading to namespacing. However, I can't seem to g...
Araiza asked 21/7, 2014 at 15:12
3
Solved
I've set up two projects, an 'init' and a library, which is required by the init. They both have PSR-0 autoloads set, but the autoload values from the library are not added to the vendor/composer/a...
Ratib asked 6/5, 2013 at 22:6
7
Solved
I have a tiny application that i need an autoloader for. I could easily use the symfony2 class loader but it seems like overkill.
Is there a stable extremely lightweight psr-0 autloader out there?...
5
I'm currently trying to use PSR-0 autoloading with Composer, but I'm getting the following error:
Fatal error: Class 'Twitter\Twitter' not found
My directory structure looks like this
- Project...
Hartz asked 24/11, 2013 at 21:21
1
Solved
I need to use some PHP libraries with dependencies but I have some restrictions on the webserver of the client. It is a managed webserver and I can not use a console eg over SSH.
So how do I use n...
Lichtenfeld asked 13/3, 2014 at 19:13
2
Solved
I can't seem to get composer to work with my own classes/files using the psr-0 autoload mechanism. Can anyone please shed some light as to why the below isn't working?
I'm getting the following ou...
Huan asked 7/12, 2013 at 21:18
1
Solved
I have create a custom composer package but I am having troubles to set the correct autoload options for it.
All my classes are under MyNamespace/Common namespace. So for example for including my ...
Equal asked 9/8, 2013 at 11:52
3
Solved
The PSR-0 (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) standard specifies that an underscore in the class name should be converted to a directory separator in the corres...
2
Solved
I'm building a framework (this is a vast simplification -- please don't recommend using an existing framework instead, that's not helpful) into which I would like to be able to integrate othe...
1
© 2022 - 2024 — McMap. All rights reserved.