Skip to content
A starter pack based on Slim Framework and some other stuff
PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
db/migrations
templates
.gitignore
.htaccess
LICENSE
README.md
composer.json
index.php
phinx.yml

README.md

Slim Starter Pack

A starter pack based on Slim Framework and some other stuff

Installation

  • clone the repository (via git or client)
  • install the vendors via composer install
  • setup the database connection info for the migrations in phinx.yml
  • run the migrations via php vendor/bin/phinx migrate -e development
  • change the settings and the database info in config/settings.php
  • run the project

Useful links

Instructions

Create a new table in the database

I recommend using Phinx migrations via php vendor/bin/phinx create MyNewMigration, where instead of MyNewMigration you may use a something more verbose like CreateModulesTable.

This will generate a file in the db/migrations folder. After you modify the file with the table structure, run php vendor/bin/phinx migrat -e development and the script will create the table and its setup.

How to

Send an email

It's really simple.

Just create a new Email object like:

$send = new App\Models\Email;

$send->to		= $email;
$send->to_name	= $name;
$send->subject	= $subject;
$send->message	= $message;

$send->save();

The Sender middleware will send all your email for you.

Upload a file

Under costruction...

Create a new model

Under costruction...

Cretae a new controller

Under costruction...

Create a new middleware

Under costruction...

Roadmap

  • Integrate some tests via phpUnit
  • More instructions
You can’t perform that action at this time.