admin admin - 2 months ago 7
PHP Question

How to work composer?

For

symfony
can I use this link to composer:

php composer.phar create-project symfony/framework-standard-edition path/ 2.3.0


but how the composer knows what server to use?

Is project symfony on main server composer?

How can I add own project to composer server?

Answer

It uses http://packagist.org/ as repository by default.

If you have open source packages you want to use you should probably put them on Github and register with packagist.

If not, you will have to create private repository using Satis: http://getcomposer.org/doc/articles/handling-private-packages-with-satis.md

Additionally you can also keep local repositories on your filesystem. In composer.json:

"repositories": 
[
    {
        "type":"vcs",
        "url":"/some/fs/location/repo"
    }
]