I am trying to create a namespace in one PHP File and use it in another PHP file. I am using PSR-4 to locate my namespace in PHP. But upon using the n ...
I am trying to create a namespace in one PHP File and use it in another PHP file. I am using PSR-4 to locate my namespace in PHP. But upon using the n ...
I'm new to using composer for autoloading custom class files using 'PSR-0' way of autoloading classes. Below is my directory tree structure. And b ...
I have trouble instantiating class by path in my PSR-0 autoloaded project. Structure is as follows: And Composer autoloader: Not to get to much ...
I've used PSR logger to get logs. But it will create just one file for all dates. I need to get separate log files to each date. How to do that? ` ...
I have a small package with 6-7 files (i.e., main class, extending classes, interface, which can be viewed in this link) and I'd like not to use requi ...
I am using composer to include a private package in my project that will includes some classes I will use to test against with PHPUnit. Most of the pa ...
I have a bunch of classes in src/Controller, src/Entity, src/Form etc. For each of them Netbeans tells me that "namespace declaration name doesn't cor ...
I have an issue with my PhpStorm using incorrect namespaces when creating a new class. Example: I have a module named Booking. Inside Booking I want ...
I have seen a few posts regarding this question but none were answered to the topic on which they were asked. I have a ZendFramework project (v 1.12) ...
I am currently trying to build a new PHP project from scratch (inside a git repository), using Composer (for the very first time), on Eclipse Neon PDT ...
I have the following class autoload definition in a [root]/composer.json file: When I call the [root]/public_html/index.php page I got the followin ...
I am using PSR-0 for auto loading, I know that I need to use PSR-4 which I will do it latter part. Even if PSR-4, answers are welcome. I am having th ...
I have a group of PHP files containing classes (entities). Each class has the same namespace: I autoload the PHP files containing the classes with ...
I have the following catalogs structure: And the following behat.yml And FeatureContext.php contains There is commented namespace. When I ru ...
I tried to autoload a file with PSR-0 ,but it is not auto loading that file. I tried the same file with PSR-4 auto loading. With PSR-4 it worked perfe ...
I'm quite new to autoloading and namespaces, and attempting to add namespaces to my MVC project. So In my composer I added: And then updated compo ...
Current Situation I am using Doctrine 2 (without Zend and Symfony) for accessing two different MySQL databases in my Project. I tried to create two ...
I am following the installation instructions here to install PHP RAML Parser I run composer install and created the index.php below but it isn't work ...
I am new to eclipse and am using version Version: Mars.1 Release (4.5.1) I am using the refactoring tool of the "PHP Development Tools 3.6" plugin to ...
So, I'm trying to use jcleblanc/reddit-php-sdk, but it follows no standards whatsoever and does not have a repository available, so I've had to manual ...