CodeIgniter Forums
Creating you own composer package - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Creating you own composer package (/thread-70353.html)



Creating you own composer package - danangeloalcanar - 03-29-2018

Hello CI Community!

I am back with a new question.

As we know, sometimes we code something repetitively. For example, I always have a registration module in my project.

So I create a Model for the registration, a Controller and the corresponding Views.

Now, I am thinking.. Can I create a composer package that will include and install these files for me? So I don't have to create new files every time I start a new project.

For example, I started a new project and I need a registration module. Now, I will just run  composer require ci-registration

and the package will be installed. All the files will go to their respective folder. 

Is that possible? Have anyone tried that?

I hope I explained myself clearly.

Thankyou so much. Please bear with me. I am a beginner in CI. Hope you can guide me.


RE: Creating you own composer package - InsiteFX - 03-29-2018

Here is an article on how to  create your own.

Creating Composer Package Library


RE: Creating you own composer package - danangeloalcanar - 03-29-2018

(03-29-2018, 03:34 AM)InsiteFX Wrote: Here is an article on how to  create your own.

Creating Composer Package Library

Thankyou InsiteFX, I am excited to try it. Smile