1
0
Fork 0
Go to file
2022-06-14 15:24:33 +07:00
lib use psr-7 2022-06-14 14:37:09 +07:00
test Initial commit 2022-06-13 14:32:59 +07:00
.editorconfig Initial commit 2022-06-13 14:32:59 +07:00
.env.example Initial commit 2022-06-13 14:32:59 +07:00
.gitignore Initial commit 2022-06-13 14:32:59 +07:00
.phpcs.xml Initial commit 2022-06-13 14:32:59 +07:00
.phpstan.neon Initial commit 2022-06-13 14:32:59 +07:00
.phpunit.xml Initial commit 2022-06-13 14:32:59 +07:00
.pre-commit-config.yaml Initial commit 2022-06-13 14:32:59 +07:00
composer.json use psr-7 2022-06-14 14:37:09 +07:00
composer.lock use psr-7 2022-06-14 14:37:09 +07:00
README.md Add README 2022-06-14 15:24:33 +07:00

Usage

Open your project or initialize a new one with this composer.json:

{
    "name": "acme/my-project",
    "description": "My project",
    "repositories":[
        {
            "type":"composer",
            "url":"https://packages.destrier.tk",
            "only": [
                "oreolek/payeer"
            ]
        }
    ],
    "minimum-stability": "dev"
}

(The repositories value is the key here.)

Type composer require oreolek/payeer

If you don't have a PSR-7 implementation in your project, composer will stop and give you a choice. You can repeat the command with your choice, like this:

composer require oreolek/payeer php-http/guzzle7-adapter

Initialize the Payeer\Adapter with your ID and secret key:

$adapter = new Adapter([
  'id' => $_ENV['PAYEER_ID'],
  'key' => $_ENV['SECRET'],
]);

(see test/PayeerTest.php for example)

You can use any method, it is transparently sent to the API as is:

$response = $adapter->time();