diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..347a927 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/.idea/ +/composer.lock +/composer.phar +/vendor/ diff --git a/README.md b/README.md index ea9659f..e028a98 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,24 @@ If you have developed software based around phpagi, we'd like to hear from you! Drop us a note, and indicate whether you'd like us to list your application on our website. +## Installation + +The preferred way to install this extension is through [composer](https://getcomposer.org/download/). + +Either run + +```bash +$ composer require welltime/phpagi ^2.20 +``` + +or add + +``` +"welltime/phpagi": "^2.20" +``` + +to the ```require``` section of your `composer.json` file. + FILES ----- * phpagi.php - The main phpagi class. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..1c84ec6 --- /dev/null +++ b/composer.json @@ -0,0 +1,13 @@ +{ + "name": "welltime/phpagi", + "description": "PHPAGI is a PHP class for the Asterisk Gateway Interface.", + "type": "library", + "license": "LGPL-2.1-or-later", + "autoload": { + "classmap": [ + "src/phpagi.php", + "src/phpagi-asmanager.php" + ] + }, + "require": {} +} diff --git a/mkdocs.php b/mkdocs.php index 7fbaf82..8ed9e8f 100755 --- a/mkdocs.php +++ b/mkdocs.php @@ -1,7 +1,7 @@ #!/usr/bin/env php diff --git a/phpagi-asmanager.php b/src/phpagi-asmanager.php similarity index 100% rename from phpagi-asmanager.php rename to src/phpagi-asmanager.php diff --git a/phpagi-fastagi.php b/src/phpagi-fastagi.php similarity index 100% rename from phpagi-fastagi.php rename to src/phpagi-fastagi.php diff --git a/phpagi.php b/src/phpagi.php similarity index 100% rename from phpagi.php rename to src/phpagi.php