sgasser/smicro

Micro-framework based on Symfony

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:project

1.0.3 2016-12-06 23:27 UTC

This package is auto-updated.

Last update: 2024-05-06 19:39:54 UTC


README

Micro-framework based on Symfony - Fast micro-services and APIs delivered with the elegance you expect.

Smicro is the perfect solution for building Symfony based micro-services and fast APIs. In fact, it's nearly twice as fast as Symfony Standard.

Build Status Packagist Installs license SensioLabsInsight

What's included

Symfony3 with MicroKernel using MicroKernelTrait

Bundles registered in the MicroKernel

  • FrameworkBundle
  • MonologBundle
  • WebProfilerBundle (DEV)

Create project

composer create-project sgasser/smicro

Usage

Structure - common files

  • app
    • config
      • routing.yml
      • services.yml
  • src
  • tests

Start local server

php bin/console server:run

Run tests

vendor/bin/phpunit

Deploy

Smicro is ready for the cloud

Heroku

Visit http://heroku.com/ to set up an account.

Initialize local GIT

git init
git add .
git commit -m 'Initial commit'

Create heroku app

heroku create

Set config

heroku config:set SYMFONY_ENV=prod

Push

git push heroku master

Open app

heroku open