firephp / firephp-core

FirePHP server library for sending PHP variables to the browser.
http://www.firephp.org
224 stars 78 forks source link

Add Composer support to FirePHP Core #6

Closed RobLoach closed 11 years ago

RobLoach commented 12 years ago

Composer is a dependency management system for PHP packages. This pull request adds Composer support to FirePHP Core. Having this means that a project that depends on FirePHP could put this in their composer.json file to have it automatically download and autoload FirePHP:

{
    "require": {
        "firephp/firephp-core": "*"
    }
}

When installing the client application, you would run "php composer.phar install", and it would download FirePHP-Core, and have the FirePHP class autoloaded so that the files would be included automatically when the FirePHP class is used. Any package on http://packagist.org could then also depict a dependency on the package if needed.

Thanks a lot!

RobLoach commented 12 years ago

@cadorn Have you had a chance to review this yet? Would be great to be able to obtain FirePHP via Composer.

cadorn commented 12 years ago

Not yet. I like the idea. Will take a look as soon as I can (not sure when yet).

WebconsultsEU commented 12 years ago

putting { "require": { "firephp/firephp-core": "dev-master" } } into composer.json works fine ...

BW-Adrian commented 11 years ago

Is it broken? Cause it doesn't work...Composer has a "RuntimeException". Failed to clone... other Extensions via composer.json working fine...

RobLoach commented 11 years ago

@WebconsultsEU It's working because it's checking out the fork that I'm hosting at: https://github.com/RobLoach/firephp-core https://packagist.org/packages/firephp/firephp-core

Would be nice to have this merged into this repository so that it checks out the main repository rather than my fork.

curl http://getcomposer.org/composer.phar
php composer.phar create-project firephp/firephp-core

Thanks.

cadorn commented 11 years ago

Let me know if there are any issues. Sorry for the delay.

RobLoach commented 11 years ago

@cadorn Thanks a lot for the help! :+1: ..... I had the Packagist/Composer team update to the correct Canonical URL: https://packagist.org/packages/firephp/firephp-core