I'm new to Composer, namespaces, and autoload and I wasn't able to figure out where to write my code (under vendor
?).
I have created a directory named ilhan
under the vendor
, and a file named People.php
. Then in the main index.php
file using use ilhan\People.php as People;
doesn't work because I think it must have been written in autoload_namespaces.php
initially.
But if I register ilhan
as a vendor then I think Composer will look into the packagist.org which it isn't there.