Skip to content
This repository has been archived by the owner. It is now read-only.

andrearufo/slim-starter-pack

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

A starter pack based on Slim Framework and some other stuff

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published