Download the PHP package ivoba/superleansilexplate without Composer

On this page you can find all versions of the php package ivoba/superleansilexplate. 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 superleansilexplate

Superlean Silex Starterplate

As Silex is end of life this boilerplate is abandoned!

Build Status

This project is supposed to be a lean starterkit for your Silex app.
Its superlean, so basically only essential things are included.

If you need full power try: https://github.com/lyrixx/Silex-Kitchen-Edition

It aims mainly at simple applications that need routing and just some additional logic.
F.e. its a good container for javascript driven apps that get their data through API calls.

It provides:

  1. Web infrastructure
  2. REST Api infrastructure
  3. Console infrastructure
  4. Misc

Install

Via composer create-project

composer create-project -s dev ivoba/superleansilexplate PATH/TO/YOUR/APP 2.*
cd PATH/TO/YOUR/APP

If you want to base your app on this starter i recommend to do the following after create-project.

Requirements

Usage

Api and web are designed to run on their own resp. subdomains with their resp starting point in /web. If you want to only have one starting point copy this to web.php:

$api = require __DIR__ . '/Controller/api.php';
$app->mount('/api', $api);

Config

In dev environment we use dotenv for configuration, so you can use a .env file in the project root to mimic Env vars.

Templates

Start hacking in resources/views/*.twig

Controller

Start hacking in src/Controllers/*.php

Provider

Add provider in src/app.php

Cli Commands

Create cli commands in src/Command and
register them in src/cli.php

Run

Run it with the php integrated webserver: http://silex.sensiolabs.org/doc/web_servers.html
or create a apache / nginx vhost.

Run Web

 php console server:run

 # in prod env
 php console server:run -e prod

and open http://127.0.0.1:8000

Run Api

 php console server:run -i api

and open http://127.0.0.1:8000

Run Cli

SILEX_ENV=dev php -d variables_order=EGPCS console silex:hello-world
# for cache clear
php console cache:clear

Tests

vendor/bin/phpunit

Heroku

Superleansilexplate is heroku ready.

Because we utilize bower, you will need to run multipacks while creating your heroku app:

heroku create --buildpack https://github.com/heroku/heroku-buildpack-multi

Then just initialize your heroku app as stated in the docs and push it:

git push heroku master

Docker

A docker setup for apache with php7 is provided.

For using docker in dev environments run docker-compose and check on http://localhost:8088:

docker-compose up

For a production build run:

docker build -t superleansilexplate -f docker/apache-php7-prod/Dockerfile . docker run -it --rm -p 8088:80 --env SILEX_ENV=prod --name run-superleansilexplate superleansilexplate

TODO:


All versions of superleansilexplate with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
silex/silex Version ^2.0
vlucas/phpdotenv Version ^2.2
twig/twig Version ^1.16
ivoba/console-service-provider Version ^3.0
symfony/finder Version ^3.0
symfony/filesystem Version ^3.0
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 ivoba/superleansilexplate contains the following files

Loading the files please wait ....