PHPackages                             wagnermontanini/goomerapi - 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. wagnermontanini/goomerapi

ActiveLibrary

wagnermontanini/goomerapi
=========================

Criar uma API RESTful capaz de gerenciar os restaurantes e os produtos do seu cardápio.

1.0.0(5y ago)04MITPHPPHP ^7.4

Since Mar 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/WagnerMontanini/goomerapi)[ Packagist](https://packagist.org/packages/wagnermontanini/goomerapi)[ RSS](/packages/wagnermontanini-goomerapi/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

GoomerApi Library Test
======================

[](#goomerapi-library-test)

[![Maintainer](https://camo.githubusercontent.com/0a82636dc095b3a11191d93e4f13593ab4a1272975f8380a02e3cffee0ba21e3/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d407761676e65726d6f6e74616e696e692d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/wagnermontanini)[![Source Code](https://camo.githubusercontent.com/99d02154263bb221738705edfb70285a4f8a467e48e498dd408d57fb4d8857a4/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d7761676e65726d6f6e74616e696e692f676f6f6d65726170692d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/wagnermontanini/goomerapi)[![PHP from Packagist](https://camo.githubusercontent.com/5fd244e9420da74cd26a1a71cc8b81cbf4d66fe3b6f4bac4caa753bca3055c4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7761676e65726d6f6e74616e696e692f676f6f6d65726170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wagnermontanini/goomerapi)[![Latest Version](https://camo.githubusercontent.com/c9ba59aae618046007153ed59dd70b7a54ae8904f647ee09459804da11a085b0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7761676e65726d6f6e74616e696e692f676f6f6d65726170692e7376673f7374796c653d666c61742d737175617265)](https://github.com/wagnermontanini/goomerapi/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/7b17d85da51cfa40fb8d0bf228b0b583d4cd5e0b4a285eb0af795dc1b22116e5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f7761676e65726d6f6e74616e696e692f676f6f6d65726170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/wagnermontanini/goomerapi)[![Quality Score](https://camo.githubusercontent.com/559e4279fa80dfa946ea6826927b0d8b4d31c7019b9e73ecbfa5c21f9bf2c0c1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7761676e65726d6f6e74616e696e692f676f6f6d65726170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/wagnermontanini/goomerapi)[![Total Downloads](https://camo.githubusercontent.com/74480d1a2c2040ef49ad5e2c7f5dc4962b80aad27dafbea07b03ea90fd033afa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7761676e65726d6f6e74616e696e692f676f6f6d65726170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cwagnermontanini/goomerapi)

###### GoomerApi Library is a RESTful API capable of managing the restaurants and products on your menu.

[](#goomerapi-library-is-a-restful-api-capable-of-managing-the-restaurants-and-products-on-your-menu)

GoomerApi Library é uma API RESTful capaz de gerenciar os restaurantes e os produtos do seu cardápio.

Você pode saber mais **[clicando aqui](https://goomer.com.br)**.

### Highlights

[](#highlights)

- Simple installation (Instalação simples)
- Abstraction of all API methods (Abstração de todos os métodos da API)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

### Melhoras possiveis

[](#melhoras-possiveis)

- Utilização de token para segurança em alterar, incluir, e excluir dados.
- Upload da imagem via api.
- Categorias de restaurantes.

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

[](#installation)

Uploader is available via Composer:

```
"wagnermontanini/goomerapi": "^1.0"
```

or run

```
composer require wagnermontanini/goomerapi
```

Importe o arquivo SQL em sua base de dados.

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 arquivo json para importação no postman com as rotas utilizadas e exemplos usando cURL. Ela funciona assim:

#### apache

[](#apache)

```
RewriteEngine On
#Options All -Indexes
## ROUTER WWW Redirect.
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
## ROUTER HTTPS Redirect
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# ROUTER URL Rewrite
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=/$1 [L,QSA]

```

#### nginx

[](#nginx)

```
location / {
  if ($script_filename !~ "-f"){
    rewrite ^(.*)$ /index.php?route=/$1 break;
  }
}

```

#### CONFIGURAÇÕES Config.php:

[](#configurações-configphp)

```
