Download the PHP package carbontwelve/slim-skeleton without Composer

On this page you can find all versions of the php package carbontwelve/slim-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package slim-skeleton

Slim Skeleton

styleci Dependency Status Latest Version ghit.me

A rather opinionated skeleton project for getting started with your slim applications. It is heavily inspired by Laravels directory structure, so if you have used Laravel 5 you should feel familiar with this.

Getting started

The easiest method for getting started developing with the Slim3 Skeleton is via the composer create-project command: composer create-project -s dev --prefer-dist carbontwelve/slim-skeleton app

Using npm install will pull in all the node requirements for the gulpfile to run, the gulpfile has serveral helper methods for building js and css from the resource folder as well as a file watcher to build on demand while you code.

Development

Once installed you can use the built in php server with the serve.php helper to run the app in your browser: php -S 127.0.0.1:8080 -t public serve.php

Basic page "router" usage

The Slim Skeleton extends the Slim3 \Slim\Handlers\NotFound handler class with App\Http\Handlers\NotFoundPageResolver which checks to see if the uri path can be resolved to a view inside the path resources\views\pages.

It will first check to see if the uri path is a directory and if so then check to see if there is a index.phtml within it; this means that http://example.com/item-one/item-two will first attempt to resolve to resources\views\pages\item-one\item-two\index.phtml.

If the first check fails it will then see if the view file exists directly, in the case of the previous example it would then attempt to resolve to resources\views\pages\item-one\item-two.phtml.

If both checks fail it passes through to the default Slim3 renderHtmlNotFoundOutput method.

With this simple functionality you can build quite complex websites without having to configure any granular routes!

Roadmap

I found myself needing a simple, yet opinionated, skeleton project to build out other applications using Slim3. For larger projects I tend to go for Laravel5 and so the folder structure is heavily inspired by that framework.


All versions of slim-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
slim/slim Version ^3.1
monolog/monolog Version ^1.17
aura/session Version ^2.0
carbontwelve/slim-plates Version ^0.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package carbontwelve/slim-skeleton contains the following files

Loading the files please wait ....