Biruwon
Biruwon

Reputation: 394

Upgrade my Symfony2 app to use composer

I want to upgrade my app that I've developed with Symfony2 for users who want to use it do so with composer.

I don't know how to create composer.json file based on deps file.

This's my deps file: https://github.com/biruwon/Vecinos2.0/blob/master/deps

For example, what about with the bundles without composer.json? Or libraries how TCPDF upload on sourceforge?

If you help me here or with a pull request I'll be very thankful to you.

PD: I do this first and then update Symfony2 to Symfony2.1

Upvotes: 2

Views: 1775

Answers (2)

Ciro Vargas
Ciro Vargas

Reputation: 422

Download the composer in symfony2 root folder:

curl -s https://getcomposer.org/installer | php

and execute

php composer.phar self-update
php composer.phar update

use this if you can update to the last version.

Upvotes: 0

Seldaek
Seldaek

Reputation: 42026

For TCPDF it's quite easy it is on packagist already.

For bundles or libs that are not on packagist, the best way is to first get it to work in your project using a custom package repository in your composer.json, and once that's done sending a pull request to the original author with a composer.json and asking them to submit it to Packagist is the way to go.

Upvotes: 2

Related Questions