GithubHelp home page GithubHelp logo

geekwolverine / fox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juststeveking/fox

0.0 1.0 0.0 124 KB

A Slim framework 3 bootstrap that is very foxy indeed

PHP 14.83% CSS 84.60% HTML 0.51% ApacheConf 0.06%

fox's Introduction

fox

A Slim framework 3 bootstrap that is very foxy indeed.

Slim Console

Available Commands:

  • php slim app:test : A simple Test Command
  • php slim app:config : List out all of your stored configuration values, for quick access
  • php slilm migration:create : Create a new Database Migration
  • php slim migration:migrate : Run the migrations
  • php slim migration:reset : Reset all Migrations
  • php slim migration:rollback : Rollback previous Migration

Migrations

Migrations are configured in phinx.php instead of the default phinx.yml to allow us to pull bootstrap configuration from our application.

Middleware Available

  • ThrottleMiddleware : Add rate limiting to routes or groups of routes, with customisable rate limits per attachment

Mailables

Mailables are a great way to send quick emails, I took inspiration from Laravel for how this is done. Thanks to Alex at CodeCourse for the amazing tutorial.

Messageables

Messageables are a great way to send SMS messages. In config/message.php be sure to set up your Twilio account details. There is one Messageable class aready built: app/Message/Welcome.php what this does is build up a template from resources/views/message/welcome.twig and prepares this from the configuration to send as a text message. The way we send it is usually from the controller, like so:

$this->message->to('+44 - UK Mobile Number minus leading 0 -')->create(new WelcomeMessage());

Please ensure that it is a UK phone number, options for sending outside the UK is in Twilio documentation.

Future Development

For future development this feature is going to be toggleable, so in you application config you can turn it on or off.

Also the Slim console will have a command to create a new Messageable.

Special Thanks

Rob Morgan for Phinx - database migrations

Hannes Forsgård for classtools - using this to load in all commands into the Slim console

Slim Framework for basically the base of what I want to achieve - thanks to all the contributers!

Questions

If you have any questions feel free to drop me a tweet @JustSteveKing

Alternatively join us on the Slim slack channel, where I am always active.

fox's People

Contributors

juststeveking avatar llvdl avatar

Watchers

 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.