tutorials How to Install Composer and add the dompdf library
Composer is a tool dependency management which is destined for PHP.Usefulness of this tool it self is to help developers in managing the library used when the web creation process.
Useful Composer
When the composer has not created yet, many of the problems experienced by web developers in developing applications such as:
-When building applications and requires a lot of libraries, then whether to download one by one?
-Some libraries used are interconnected and require other libraries, indirectly developers have to download other libraries right?
-Then if the library used to release the latest version, does the developer have to redownload and then upload it again?
To overcome the above problems, the problem is having to use composer.How the composer work is quite simple, later you are required to write the required library in a file (composer.json). Then the composer will search and install the library automatically. Similarly, if there is a new update on the library used, simply change the composer.json file then automatically also composer will update it.
In essence the composer indirectly helps the developer in lightening his work, because the composer install and update the library automatically.
How to Install Composer .
Attention!
-Before installing composer first you must have xampp and wampp applications because as commandline.
-Do not forget to connect to the internet, because during the process the installer will download the composer and some necessary components.
The first step
Double click composer-setup.exe >> next. Next will appear a window like below

The next step we are asked to determine the location of the php file (php.exe file) that will be used in the command line.

From the above screenshot, the php.exe file is located at C:\ xampp\ php\php.exe Then click next.
In the proxy window setting directly next only, without checklist "use a proxy server to connect internet" because I do not use proxy server.

On this page will show you the review settings that will be run. Click install to continue the installation process.

then the notification window will appear that there has been a change in windows environment. This change is intended to allow the composer to run at a command prompt.

Klik next>>
the installation process is complete and click finish to close the installation window.

How to add a dompdf library in a web application Before adding the dompdf library we make sure first whether the composer is installed or not yet.How to enter command prompt then type composer. If already installed will appear as shown below:

And do not forget to connect internet when want to add dompdf.
The first step to add dompdf.
-Create a folder as you like in htdocs
-Then copy and paste the composer.json file in the folder you created earlier

Edit composer.json

Add commands like the red circle,
Open the folder you created earlier (CI_Utami) via the command prompt, then type
composer update.

Then the composer will automatically download and update. When the update process is complete then the composer creates a folder named vendor and a file called composer.lock inside the CI_Utami folder.

And the dompdf library has been created, it is located inside the vendor folder.

Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @isfar I am @utopian-io. I have just upvoted you at 7% Power!
Achievements
Suggestions
Human Curation
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x