Skip to content

Commit

Permalink
Merge pull request #21 from alexeevdv/feature/composer-support
Browse files Browse the repository at this point in the history
Add composer support
  • Loading branch information
FreeSS authored Apr 15, 2019
2 parents 99c2d5d + 5377aea commit 0043606
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.idea/
/composer.lock
/composer.phar
/vendor/
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": {}
}
2 changes: 1 addition & 1 deletion mkdocs.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
$cwd = getcwd();
passthru("phpdoc -t \"$cwd/api-docs\" -f \"$cwd/phpagi.php,$cwd/phpagi-asmanager.php,$cwd/phpagi-fastagi.php\" -pp on -ti \"phpAGI\" -o HTML:frames:earthli -s on");
passthru("phpdoc -t \"$cwd/api-docs\" -f \"$cwd/src/phpagi.php,$cwd/src/phpagi-asmanager.php,$cwd/src/phpagi-fastagi.php\" -pp on -ti \"phpAGI\" -o HTML:frames:earthli -s on");
?>


File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0043606

Please sign in to comment.