prawnsalad / Nexmo-PHP-lib

Nexmo SMS gateway example library
MIT License
121 stars 98 forks source link

Add composer.json and add library to Packagist.org #16

Open rvanlaak opened 11 years ago

rvanlaak commented 11 years ago

Can you please add a basic composer.json and then add the library to packagist.org?

The content of the json file should be something like

{ "description": "PHP library for sending text messages via Nexmo.", "name": "prawnsalad/nexmo-php-lib", "type": "library", "keywords" : ["nexmo", "php"], "homepage": "https://github.com/prawnsalad/Nexmo-PHP-lib" ], "require": { "php": ">=5.3.2" }, "autoload": { "psr-0": { "Nexmo": "" } } }

dorongutman commented 10 years ago

@prawnsalad Anything new about this ? The lack of composer prevents many from using this library.

toooni commented 10 years ago

@dorongutman @Rvanlaak i think this is necessary too.. but as a workaround you can add the package to composer.json and define the target manually with "repositories":

    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/prawnsalad/Nexmo-PHP-lib.git"
        }
    ],
rvanlaak commented 10 years ago

I just started to use https://github.com/civocr/nexmo-php-lib

That lib had composer support from the beginning ;-)

toooni commented 10 years ago

@Rvanlaak thank you for that fork.. i'll better use this too.. :)