Git Product home page Git Product logo

slim-starter's Introduction

Slim Starter

Based on the Slim 3 Skeleton.

Additional features:

  • JWT support
  • examples for a few controllers (home, resource, login, stream file)
  • helper composer commands for testing, migrations, seeds, etc.
  • simple queries using EasyDB and Latitude - basically build queries easily without hydration or model classes
  • support for .env file
  • support for migrations and seeds with fake data
  • easily test with migrations and seeds
  • simple authentication in tests with actingAs method

Additional packages:

  • paragonie/easydb
  • tuupola/slim-jwt-auth
  • vlucas/phpdotenv
  • latitude/latitude
  • robmorgan/phinx
  • fzaninotto/faker

Sample Env

Copy the contents below into a .env file at the root of the project:

APP_ENV=local
APP_NAME=slim-app
APP_URL=slim.localhost
APP_DEBUG=true
JWT_SECRET=supersecretdefaultkeyyoushouldnotcommittogithub
# used for monolog critical hook - can be empty
SLACK_WEBHOOK=https://hooks.slack.com/services/SOME/SLACK/CRAZY-URL
DB_ADAPTER=mysql
DB_HOST=localhost
DB_NAME=testing_slim
DB_USER=root
DB_PASS=root
DB_PORT=3306
DB_CHARSET=utf8mb4

slim-starter's People

Contributors

james2doyle avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.