Download the PHP package soleniye/yoomoney-sdk-php without Composer
On this page you can find all versions of the php package soleniye/yoomoney-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yoomoney-sdk-php
[UNOFFICIAL] PHP Yoomoney API SDK
Requirements
PHP 5.3 or above
Links
Getting started
Installation
- Add
"soleniye/yoomoney-sdk-php": "1.0.*"
tocomposer.json
of your application. Or clone repo to your project. - If you are using composer - simply use
require_once 'vendor/autoload.php';
otherwise paste following code
Payments from the Yoomoney wallet
Using Yoomoney API requires following steps
-
Obtain token URL and redirect user's browser to Yoomoney service. Note:
client_id
,redirect_uri
,client_secret
are constants that you get, when register app in Yoomoney API. -
After that, user fills Yoomoney HTML form and user is redirected back to
REDIRECT_URI?code=CODE
. -
You should immediately exchange
CODE
withACCESS_TOKEN
. - Now you can use Yoomoney API.
Side notes
- Library throws exceptions in case of
- response status isn't equal 2**
- I/O error(see requests)
- If you register app and fill
CLIENT_SECRET
entry then you should provide$client_secret
explicitly where$client_secret=NULL
- You should wrap all passed boolean values in quotes(because php converts them to numbers otherwise). For example:
Running tests
- Clone this repo.
- Install composer
- Run
composer install
- Make sure
phpunit
executable is present in your$PATH
- Create
tests/constants.php
withCLIENT_ID
,CLIENT_SECRET
andACCESS_TOKEN
constants. - Run tests
phpunit --bootstrap vendor/autoload.php tests/
All versions of yoomoney-sdk-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package soleniye/yoomoney-sdk-php contains the following files
Loading the files please wait ....