G
G
gereedschapskist2014-05-19 16:42:06
PHP
gereedschapskist, 2014-05-19 16:42:06

How to include libraries using composer?

I still don't understand how composer works at all. I need to use a CSS parser in a Sabberworm project , but I don't know how to install it.
The Readme file does not help because I just don't understand how composer.
I would appreciate a specific code action plan , as well as links to articles about composer for beginner programmers :)
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Solovyov, 2014-05-19
@gereedschapskist

you must have a composer.json file in your project, you need to add the line
"sabberworm/php-css-parser": "*"
to it and run composer update
If you do not use composer in your project, you can install it manually by downloading from github

S
Sergey, 2014-05-19
Protko @Fesor

create a project
, connect dependencies.
It will prescribe and install this business, and in the file in which you want to use these dependencies (or at the entry point), write:
all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question