New to components

Hey all,

I’m a beginner and am learning about components. I’ve learned how to find them on Packagist and install them with Composer, but my question is once I’ve found a component for what I need how do I learn how to use it?

Thanks!

Component for what?

For user management. I’ve installed rcm/users and trying to understand how to implement it. But more broadly, I’d like to know what to look at in a component in order to use it. Do you only need to view the readme.md file or do you go in and look at all the files within the src/ folder as well?

You are in a General PHP forum currently, not a sub-forum for XYZ in PHP. So, components does not narrow anything down. Is this for a CMS, a Framework, something else? If so what?

Usually a good quality package will have a good quality documentation, preferably with a quick start guide.

It depends on the quality of the documentation and how advanced (really how unusual) whatever you’re trying to do is.

Note that you can also get quite good help from using a proper IDE (link in my signature), if your editor auto completes code it’s much easier to figure out how to use an unknown class/package/framework.

[hr]

If you compare
https://github.com/reliv/RcmUser with https://github.com/Seldaek/monolog you’ll probably see what I mean. Monolog gets straight to the point, how to install (using composer) and a short snippet showing basic usage. That’s how I like to start off a readme, tbh I would probably skip RcmUser as there are too many packages out there now to consider one without (what I would consider) a proper documentation.

JimL, this is what I was looking for…thank you.

Sponsor our Newsletter | Privacy Policy | Terms of Service