Composer for CodeIgniter Library Updates (CCLU)

For example, if we will use composer to add the dompdf library to the CI framework, then the steps we need to take are:

1. Check the availability of composer via CLI by calling it from any directory;

If available, it will display the composer logo and menu options, then close the CLI and we are ready to use it.

2. Next, we add the composer.json file to the directory we want, for example the CI library.

3. Then we edit the composer to add dompdf in the following way:

4. Still in the same directory, namely the CI library, next we use composer by right-clicking >> Use Composer here

Then the CLI window will automatically open,

5. Next, we just type the composer update command to access the composer.json that we edited earlier, so that we can add the latest version of the dompdf plugin, make sure you are connected to the internet.

So, we will get the results as below (wait until the download process is complete),

In the vendor package there is a dompdf plugin and its supporting components,

Reference


Post a Comment

Previous Next

نموذج الاتصال