PHPackages                             mrprompt/silex-api-skel - 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. [Framework](/categories/framework)
4. /
5. mrprompt/silex-api-skel

ArchivedProject[Framework](/categories/framework)

mrprompt/silex-api-skel
=======================

Silex REST Application Skeleton

1798PHP

Since Oct 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mrprompt/silex-api-skel)[ Packagist](https://packagist.org/packages/mrprompt/silex-api-skel)[ RSS](/packages/mrprompt-silex-api-skel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Skeleton API
============

[](#skeleton-api)

[![Build Status](https://camo.githubusercontent.com/125104a14f900452a35b48c0e0140987ae3baa24d7895f85316aad481ed45dd9/68747470733a2f2f7472617669732d63692e6f72672f6d7270726f6d70742f73696c65782d6170692d736b656c2e737667)](https://travis-ci.org/mrprompt/silex-api-skel)[![Codacy Badge](https://camo.githubusercontent.com/b5c7f550fc6919b8ba7436b632d6c40f5cb66d373fd7ee9045a0f3bfd0e18919/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f67726164652f3362666139336664353738643437366361363065636533303635356466396138)](https://www.codacy.com/app/mrprompt/silex-api-skel)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0b50cd4e4baccee4be49b8ef025b75c5228abc0d4a1eefd8b5c8b501e66f4bc9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d7270726f6d70742f73696c65782d6170692d736b656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mrprompt/silex-api-skel/?branch=master)[![Build Status](https://camo.githubusercontent.com/460ec922c918f9a937f65b1fe7464766a7741178a343cb44d75324fd37d14723/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d7270726f6d70742f73696c65782d6170692d736b656c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mrprompt/silex-api-skel/build-status/master)[![Code Climate](https://camo.githubusercontent.com/a913e21f2ffdd1cb54e46ff6a0249305a72a66b3de5e71714874d69698cb873d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d7270726f6d70742f73696c65782d6170692d736b656c2f6261646765732f6770612e737667)](https://codeclimate.com/github/mrprompt/silex-api-skel)[![Issue Count](https://camo.githubusercontent.com/7f194a9285d4c1a70151d230ae999500ef22c53802a69a94e21dcee22a62a9e5/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d7270726f6d70742f73696c65782d6170692d736b656c2f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/mrprompt/silex-api-skel)[![Test Coverage](https://camo.githubusercontent.com/8c7f34b936f5890c2484e32bde8da914e7729e32202c814248c3b6840d22f078/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d7270726f6d70742f73696c65782d616e67756c61722d736b656c2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/mrprompt/silex-angular-skel/coverage)

API REST Skeleton

Este é um projeto exemplo de uso do Silex Framework para aplicações que exijam performance, fácil manutenção e escalabilidade.

Ele utiliza sub componentes como:

- [Silex DI Builder](https://github.com/mrprompt/silex-di-builder)
- [Silex CORS Provider](https://github.com/mrprompt/silex-cors-provider)
- [Silex Router Provider](https://github.com/mrprompt/silex-router-provider)

Instalação
==========

[](#instalação)

É necessário o PHP 7.0.x

Extensões necessárias
---------------------

[](#extensões-necessárias)

- curl
- pdo
- reflection
- json
- xdebug (opcional)

Instalação
----------

[](#instalação-1)

Baixe o [Composer](https://getcomposer.org/)

Baixe o esqueleto do projeto

```
composer.phar create-project mrprompt/silex-api-skel some-dir --stability dev --no-interaction

```

Instale as dependências

```
composer.phar install --prefer-dist -o

```

Rodando localmente
------------------

[](#rodando-localmente)

Você pode utilizar o [servidor web embutido](http://php.net/manual/pt_BR/features.commandline.webserver.php) no [PHP](http://www.php.net)para rodar localmente a API. Ou se preferir, configurar seu servidor web preferido apontando para a pasta *public*.

```
php -S localhost:8080 -t public

```

Rodando em modo desenvolvimento
-------------------------------

[](#rodando-em-modo-desenvolvimento)

Rodar a API em modo de desenvolvimento, você deve definir a variável de ambiente *APPLICATION\_ENV* com o valor *development*. Caso a variável não esteja definida, o valor padrão é *production*. Em modo de desenvolvimento, a aplicação irá mostrar todas as mensagens de erro e também de irá logar as mensagens de debug.

```
APPLICATION_ENV="development" php -S localhost:8080 -t public

```

Testando
--------

[](#testando)

```
./vendor/bin/phpunit

```

Rotas
-----

[](#rotas)

- User

    - Url: /user/1
    - Método: GET
- User

    - Url: /user/
    - Método: GET

Como contribuir
---------------

[](#como-contribuir)

- faça um fork e envie um pull request
- clique em 'star' :)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d08744966e0d5783569605da853ef945dadac0be0f613f2eba6a052861d937a?d=identicon)[mrprompt](/maintainers/mrprompt)

---

Top Contributors

[![mrprompt](https://avatars.githubusercontent.com/u/166088?v=4)](https://github.com/mrprompt "mrprompt (75 commits)")

### Embed Badge

![Health badge](/badges/mrprompt-silex-api-skel/health.svg)

```
[![Health](https://phpackages.com/badges/mrprompt-silex-api-skel/health.svg)](https://phpackages.com/packages/mrprompt-silex-api-skel)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
