Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 0043606

Browse files
authored
Merge pull request #21 from alexeevdv/feature/composer-support
Add composer support
2 parents 99c2d5d + 5377aea commit 0043606

File tree

7 files changed

+36
-1
lines changed

7 files changed

+36
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.idea/
2+
/composer.lock
3+
/composer.phar
4+
/vendor/

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ If you have developed software based around phpagi, we'd like to hear from
1919
you! Drop us a note, and indicate whether you'd like us to list your
2020
application on our website.
2121

22+
## Installation
23+
24+
The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
25+
26+
Either run
27+
28+
```bash
29+
$ composer require welltime/phpagi ^2.20
30+
```
31+
32+
or add
33+
34+
```
35+
"welltime/phpagi": "^2.20"
36+
```
37+
38+
to the ```require``` section of your `composer.json` file.
39+
2240
FILES
2341
-----
2442
* phpagi.php - The main phpagi class.

composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "welltime/phpagi",
3+
"description": "PHPAGI is a PHP class for the Asterisk Gateway Interface.",
4+
"type": "library",
5+
"license": "LGPL-2.1-or-later",
6+
"autoload": {
7+
"classmap": [
8+
"src/phpagi.php",
9+
"src/phpagi-asmanager.php"
10+
]
11+
},
12+
"require": {}
13+
}

mkdocs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33
$cwd = getcwd();
4-
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");
4+
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");
55
?>
66

77

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

0 commit comments

Comments
 (0)