PHPackages                             machadomatt/cafeapi - 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. machadomatt/cafeapi

ActiveLibrary[API Development](/categories/api)

machadomatt/cafeapi
===================

Biblioteca API para integração com o webservice do SaaS FSPHP

1.0.0(5y ago)05MITPHPPHP ^7.1

Since Sep 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/machadomatt/cafeapi)[ Packagist](https://packagist.org/packages/machadomatt/cafeapi)[ Docs](https://github.com/machadomatt/cafeapi)[ RSS](/packages/machadomatt-cafeapi/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

CaféApi Library Test
====================

[](#caféapi-library-test)

[![Source Code](https://camo.githubusercontent.com/3ef2bf49c92e2fc874456ad789ea03a9519df470034f3308623572c4e6a9f722/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6d61636861646f6d6174742f636166656170692d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/machadomatt/cafeapi)[![PHP from Packagist](https://camo.githubusercontent.com/b03b7b5ddb1bf140dbf991e42ee85fbc846dea351b5707de6428986116d6cc04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d61636861646f6d6174742f636166656170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/machadomatt/cafeapi)[![Latest Version](https://camo.githubusercontent.com/8e68779e844223de858ea3f09b3dea54da8c024cded11f6bb4cb3f91cdfdca14/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d61636861646f6d6174742f636166656170692e7376673f7374796c653d666c61742d737175617265)](https://github.com/machadomatt/cafeapi/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/20e269883b38010e8a6404153f698bbe7b3964617c69873348f1549f540a08ab/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f6d61636861646f6d6174742f636166656170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/machadomatt/cafeapi)[![Quality Score](https://camo.githubusercontent.com/ada35f2e3ec929bf687d72645c40bdd37e8dca327b974ccebaa61d318664c16b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d61636861646f6d6174742f636166656170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/machadomatt/cafeapi)[![Total Downloads](https://camo.githubusercontent.com/3dc58d784fdf2758217a2ef85730a189f9d4b84c4cc33c6fb9994a1926680ba7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61636861646f6d6174742f636166656170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/machadomatt/cafeapi)

###### CaféApi Library is a small set of classes developed in UpInside's Full Stack PHP Developer training for integration into the webservice of a SaaS platform developed in the course..

[](#caféapi-library-is-a-small-set-of-classes-developed-in-upinsides-full-stack-php-developer-training-for-integration-into-the-webservice-of-a-saas-platform-developed-in-the-course)

CaféApi Library é um pequeno conjunto de classes desenvolvidas na formação Full Stack PHP Developer da UpInside para integração ao webservice de uma plataforma SaaS desenvolvida no curso.

### Highlights

[](#highlights)

- Simple installation (Instalação simples)
- Abstraction of all API methods (Abstração de todos os métodos da API)
- Easy authentication with login and password (Fácil autenticação com login e senha)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Installation
------------

[](#installation)

Uploader is available via Composer:

```
"machadomatt/cafeapi": "^1.0"
```

or run

```
composer require machadomatt/cafeapi
```

Documentation
-------------

[](#documentation)

###### For details on how to use, see a sample folder in the component directory. In it you will have an example of use for each class. It works like this:

[](#for-details-on-how-to-use-see-a-sample-folder-in-the-component-directory-in-it-you-will-have-an-example-of-use-for-each-class-it-works-like-this)

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso para cada classe. Ele funciona assim:

#### User endpoint:

[](#user-endpoint)

```
