Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
# GusApi - Use GUS API to get information from REGON in your project.
# GusApi - Use GUS API to get information from REGON in your project.

![GusApi banner](https://raw.githubusercontent.com/initbiz/gusapi-plugin/master/docs/gus-api.png)

This is a repo of OctoberCMS plugin by [InIT.biz](https://init.biz).

For full documentation visit [https://docs.init.biz/article/gus-api](https://docs.init.biz/article/gus-api) or go to [OctoberCMS's marketplace](https://octobercms.com/plugin/initbiz-gusapi).
## Introduction

Our Gus Api plugin give you acces to the johnzuk/GusApi library from within October.

The library is based on the official REGON SOAP API.

## Installation

If you want to connect to the testing version, then install the plugin and you are ready to go.

If you want to connect to production, ensure you have:

- `APP_ENV` in you `.env` file set to `production`
- entered your key in backend settings.

### Example usage

```php
use Initbiz\GusApi\Classes\GusApi;

//...

$gus = new GusApi();

//With Laravel accent ;)
$initbiz = collect($gus->getByNip('8661738221'))->first();
```