diff --git a/announcements/001.md b/announcements/001.md new file mode 100644 index 0000000..fd785c2 --- /dev/null +++ b/announcements/001.md @@ -0,0 +1,27 @@ +# A New PHP Library Version + +We are happy to announce the first `stable` version of the PHP wrapper library. + +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: + +```bash +composer require moyasar/moyasar +``` + +then publish configuration files using: + +```bash +php artisan vendor:publish --provider="Moyasar\Providers\LaravelServiceProvider" +``` + +finally, set your secret API key in `.env`: + +```bash +MOYASAR_API_KEY= +``` + +Now you can typehint `PaymentService` or `InvoiceService` in your controllers or use the `Payment` or `Invoice` facades. + +Checkout our [API Documentation](https://moyasar.com/docs/api/) or our Github repository for more details [moyasar-php](https://github.com/moyasar/moyasar-php) + +Happy coding friends 👋