PSR and Composer

71 views
Skip to first unread message

Renan de Lima

unread,
Nov 20, 2012, 9:57:02 PM11/20/12
to glu...@googlegroups.com
Hi there,

Are there plans to adapt Glue for PSR and Composer?

geekcube

unread,
Nov 28, 2012, 1:38:07 PM11/28/12
to glu...@googlegroups.com
This is Joe's project, but I would suspect you may be welcomed to submit a pull request and add-on such functionality. 
Glue is very flexible, but likewise not demanding. So any pre-req's would be project specific(?) - or do you have something different in mind?

Renan de Lima

unread,
Mar 25, 2013, 3:29:44 PM3/25/13
to glu...@googlegroups.com
I like project philosophy, I don't want to change it.

Actually PSR is not necessary. I just like to use gluephp in my project through composer dependency manager. How to turn it possible? Easy, two steps.

First: add composer.json in root directory

{
    "name": "gluephp/gluephp",
    "type": "library",
    "description": "Glue is a PHP micro-framework. It provides one simple service: to maps URLs to Classes.",
    "keywords": ["microframework", "router"],
    "homepage": "http://gluephp.com/",
    "license": "BSD-4-Clause",
    "authors": [
        { "name": "Joe Topjian", "email": "j...@topjian.net" }
    ],
    "require": { "php": ">=5.2.0" },
    "autoload": { "files": { "glue.php" } }
}


Second
add this URL https://github.com/jtopjian/gluephp.git in main repository Packagist https://packagist.org/packages/submit

... you guys can see, i don't check this forum frequently, mail me for any issue

good luck
Reply all
Reply to author
Forward
0 new messages