Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add Composer support to FirePHP Core #6

Merged
merged 1 commit into from

4 participants

@RobLoach

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

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

@cadorn
Owner

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

@WebconsultsEU

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

@BW-Adrian

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

@RobLoach

@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 cadorn merged commit e6cbdae into from
@cadorn
Owner

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

@RobLoach

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 29, 2012
  1. @RobLoach
This page is out of date. Refresh to see the latest.
Showing with 26 additions and 0 deletions.
  1. +26 −0 composer.json
View
26 composer.json
@@ -0,0 +1,26 @@
+{
+ "name": "firephp/firephp-core",
+ "description": "Traditional FirePHPCore library for sending PHP variables to the browser.",
+ "type": "library",
+ "homepage": "https://github.com/firephp/firephp-core",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Christoph Dorn",
+ "email": "christoph@christophdorn.com",
+ "homepage": "christophdorn.com"
+ }
+ ],
+ "support": {
+ "forum": "http://groups.google.com/group/firephp-dev",
+ "issues": "https://github.com/firephp/firephp-core/issues",
+ "source": "https://github.com/firephp/firephp-core"
+ },
+ "autoload": {
+ "classmap": [
+ "lib/FirePHPCore/FirePHP.class.php",
+ "lib/FirePHPCore/fb.php"
+ ]
+ }
+}
+
Something went wrong with that request. Please try again.