From 5355b8f015228a6e7b708be8189dc4204a831a5e Mon Sep 17 00:00:00 2001 From: AliH <alialhoshaiyan@gmail.com> Date: Fri, 15 May 2020 01:09:28 +0300 Subject: [PATCH] Add new version anouncement (#18) --- announcements/001.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 announcements/001.md 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=<secret_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 👋