Skip to content

Commit 5355b8f

Browse files
authored
Add new version anouncement (#18)
1 parent f5c508c commit 5355b8f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

announcements/001.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# A New PHP Library Version
2+
3+
We are happy to announce the first `stable` version of the PHP wrapper library.
4+
5+
This version simplifies how you can interact with the API as it allows you to treat `invoices` and `payments` as PHP objects, in addition to we have supported Laravel framework integration so all you need to do is install the library:
6+
7+
```bash
8+
composer require moyasar/moyasar
9+
```
10+
11+
then publish configuration files using:
12+
13+
```bash
14+
php artisan vendor:publish --provider="Moyasar\Providers\LaravelServiceProvider"
15+
```
16+
17+
finally, set your secret API key in `.env`:
18+
19+
```bash
20+
MOYASAR_API_KEY=<secret_api_key>
21+
```
22+
23+
Now you can typehint `PaymentService` or `InvoiceService` in your controllers or use the `Payment` or `Invoice` facades.
24+
25+
Checkout our [API Documentation](https://moyasar.com/docs/api/) or our Github repository for more details [moyasar-php](https://github.com/moyasar/moyasar-php)
26+
27+
Happy coding friends 👋

0 commit comments

Comments
 (0)