Welcome Guest, Not a member yet? Register   Sign In
Documentation: Creating Composer Packages
#9

(07-31-2023, 05:12 PM)kenjis Wrote: @iRedds Is there any good article for beginners to create Composer packages?
Google?

(07-31-2023, 05:12 PM)kenjis Wrote: My intent is to explain things for CI4:
https://codeigniter4.github.io/CodeIgnit...nfig-files
Because I did not know that well.

Did you know that if you register a module in composer.json in the autoload section, the short config name won't work?
Since only modules registered in the Autoload config and installed via `composer require` are allowed.

(07-31-2023, 05:12 PM)kenjis Wrote: Also, I want to let people to know that you should use your package vendor name as your vendor namespace.
Some developers mistakenly believe that they are free to name vendor namespaces independently of the package name.

I can't find any information that says the namespace should be the name of the vendor.

What do you say about it?

vendor name | namespace
fakerphp | Faker
mikey179 | org\bovigo\vfs
myclabs | DeepCopy
nikic | PhpParser

And these are just the packages used in codeigniter4/appstarter.

The most important. codeigniter4 | CodeIgniter
Reply


Messages In This Thread
RE: Documentation: Creating Composer Packages - by iRedds - 08-01-2023, 12:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB