PHPackages                             romeritocampos/suap-php-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. romeritocampos/suap-php-api

ActiveLibrary[API Development](/categories/api)

romeritocampos/suap-php-api
===========================

Pacote que definie classe client para api do suap

v0.1-beta(7y ago)0108mitPHP

Since Sep 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RoCampos/suapclientapi)[ Packagist](https://packagist.org/packages/romeritocampos/suap-php-api)[ RSS](/packages/romeritocampos-suap-php-api/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

PHP SUAP CLIENT API
===================

[](#php-suap-client-api)

This project implements a wrapper to [SUAP API](https://bit.ly/2N10jvW). The aim is to provide php code to deal with functionalities provided by SUAP API. In this way, it is possible construct php aplications using the SUAP API in php way.

How to install
--------------

[](#how-to-install)

The package can be installed from the [packagist.org](https://packagist.org/packages/romeritocampos/suap-php-api) by the following command:

> composer require "composer require romeritocampos/suap-php-api:dev-master"

How to use
----------

[](#how-to-use)

The package has two modelus. The first module is defined under `Romerito\Suap` namespace. This module contains classe to make appropriate calls to SUAP API and access the data available. The second module is defined under `Romerito\model` namespace and its classes are used to represent the information as objects.

### Authorization

[](#authorization)

Authorization process requires the user credentials. In the following code, it is shown how to perform to check the user credentials and access the token generated in case of valid informations.

```
