You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://packagist.org/packages/openpesa/pesa)
5
+
> <h1>Version 2 | Work in Progress 🚧</h1>
4
6
7
+
[](https://packagist.org/packages/openpesa/pesa)
The **Pesa SDK for PHP** makes it easy for developers to access [OpenAPI](https://openapiportal.m-pesa.com/) in their PHP code, and build robust applications and software using services like Customber 2 Bussiness, Query etc.
11
15
12
16
## Documentation
13
17
14
-
Take a look at the [API docs here](https://php-pesa.netlify.app/).
18
+
Take a look at the [API docs here](https://openpesa.github.io/php-pesa/).
15
19
16
20
## Getting Started
17
21
18
22
1.**Sign up for OpenAPI Portal** – Before you begin, you need to
19
23
sign up for an account and retrieve your credentials.
20
24
21
25
1.**Minimum requirements** – To run the SDK, your system will need to meet the
22
-
[minimum requirements](https://php-pesa.netlify.app/docs/requirements.html), including having **PHP >= 7.1**.
23
-
<!-- We highly recommend having it compiled with the cURL extension and cURL
24
-
7.16.2+ compiled with a TLS backend (e.g., NSS or OpenSSL). -->
26
+
[minimum requirements](https://openpesa.github.io/php-pesa/guide/installation#system-requirements), including having **PHP >= 7.1**.
27
+
<!-- We highly recommend having it compiled with the cURL extension and cURL
28
+
7.16.2+ compiled with a TLS backend (e.g., NSS or OpenSSL). -->
25
29
1.**Install the SDK** – Using [Composer] is the recommended way to install the
26
30
Pesa SDK for PHP. The SDK is available via [Packagist] under the
27
31
[`openpesa/php-pesa`](https://packagist.org/packages/openpesa/pesa) package. If Composer is installed globally on your system, you can run the following in the base directory of your project to add the SDK as a dependency:
28
32
```sh
29
33
composer require openpesa/pesa
30
34
```
31
35
Please see the
32
-
[Installation section of the User Guide](https://php-pesa.netlify.app/docs/installation.html) for more
36
+
[Installation section of the User Guide](https://openpesa.github.io/php-pesa/guide/installation) for more
33
37
detailed information about installing the SDK through Composer and other
34
38
means.
35
39
1. **Using the SDK** – The best way to become familiar with how to use the SDK
36
-
is to read the [User Guide](https://php-pesa.netlify.app/docs/guide.html).
40
+
is to read the [User Guide](https://openpesa.github.io/php-pesa/guide/quick_guide).
37
41
38
-
<!-- The [Getting Started Guide](#) will help you become familiar with
39
-
the basic concepts. -->
42
+
<!-- The [Getting Started Guide](#) will help you become familiar with
43
+
the basic concepts. -->
40
44
41
45
## Usage
42
46
@@ -53,7 +57,7 @@ $pesa = new Pesa([
53
57
'api_key'=>'YOUR_API_KEY',
54
58
'public_key'=>'PUBLIC_KEY',
55
59
'client_options'=> [],
56
-
]);
60
+
],'sandbox');
57
61
58
62
// Setup the transaction
59
63
$data = [
@@ -87,6 +91,15 @@ composer test
87
91
88
92
If you have a feature requrest or you encounter a bug, please file an issue on [our issue tracker on GitHub](https://github.com/openpesa/php-pesa/issues).
89
93
94
+
## Resources
95
+
96
+
* [User Guide](https://openpesa.github.io/php-pesa/) – For both getting started and in-depth SDK usage information
97
+
* [API Docs](https://openapiportal.m-pesa.com/) – For details about operations, parameters, and responses
98
+
* [Blog](https://openpesa.github.io/blog/) – Tips & tricks, articles, and announcements
99
+
* [Sample Project](https://github.com/alphaolomi/laravel-pesa-demo) - A quick, sample project to help get you started
100
+
* [Issues](https://github.com/openpesa/php-pesa/issues) – Report issues, submit pull requests, and get involved
101
+
* [@openpesa](https://twitter.com/openpesa) – Follow us on Twitter
102
+
90
103
### Changelog
91
104
92
105
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
0 commit comments