2017 © Pedro Peláez
 

library slim-skeleton

A Slim Framework skeleton application for rapid development

image

creativados/slim-skeleton

A Slim Framework skeleton application for rapid development

  • Friday, July 27, 2018
  • by vampireJSV
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 290 Forks
  • 0 Open issues
  • 11 Versions
  • 89 % Grown

The README.md

Slim Framework 3 Skeleton Application

Use this skeleton application for the slim 3 micro-framework with some pre configured dependencies and structures:, (*1)

If you don't need all of this, you should just use slimphp/Slim-Skeleton which I forked and extended with this features., (*2)

Requirements

  • PHP >= 7.0
  • Composer
  • NodeJS (for Webpack)

Node, Javascript and webpack libraries support

Javascript and client - Jquery - Jquery-migrate - Bootstrap - Bootbox - Bootstrap Lightbox - Slick carousel, (*3)

Node - cli-real-favicon - dotenv, (*4)

Webpack - Clean for WebPack - Copy Webpack Plugin - Image compress - Webfonts generator, (*5)

Install the Application

Run this command from the directory in which you want to install your new Slim Framework application., (*6)

    composer create-project creativados/slim-skeleton [my-app-name]

Replace [my-app-name] with the desired directory name for your new application. You'll want to:, (*7)

  • Point your virtual host document root to your new application's public/ directory.
  • Ensure storage/ is web writeable.
  • create a copy ".env" of the file ".env.example" an set up your configuration

Install NodeJS dependencies:, (*8)

npm install

Development

for development you can use the PHP built-in webserver:, (*9)

    php cli app:dev

Generate favicon for resources/assets/img/logo.png:, (*10)

    npm run favicon

And let webpack bundle your assets live:, (*11)

    npm run watch

On Production

Make sure to bundle your assets after clone/update your assets on production by running:, (*12)

    npm run build

The Versions