Download the PHP package mareksokol/silex-bootstrap without Composer

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

Silex-bootstrap

Build Status

Silex-bootstrap is an already setup Silex project dedicated for lightweight, RESTful APIs.

Installation

To start a new project, run:

composer create-project mareksokol/silex-bootstrap <target-dir>

You need also to create config file in root directory:

cp config.php.dist config.php

Directory structure

The directory structure is the following

bin/
src/
  Controller/
  Entity/
    Migrations/
    Repository/
  Service/
    Provider/
storage/
    logs/
    proxies/
tests/
web/

bin/ place for all executables, eg. command line tool

src/ is the root of application, contains application files: controllers, entities, migrations, repositories, services, providers and bootstrap file

storage/ all static files, including application logs

test/ contains unit tests

web/ contains everything which is exposed - HTTP server should be configured to point this place as root

Usage

Configuration

All configuration should be places in config.php file. To define new configuration parameters need to add definition in App\Service\Provider\ConfigServiceProvider::$config.

Controllers

Controllers should inherit from App\Controller\AbstractController - this class implements several helper methods to simplify output from API. To register new controller need to add declaration in App\Bootstrap::loadControllers().

Routes

Routes are defined in App\Bootstrap::routes().

Services

Services are registered via service providers in App\Bootstrap::loadServices(). Custom service providers should be placed in App\Service\Provider namespace.

Database

All database mechanism is based on Doctrine2 framework. There is dedicated namespace App\Entity for all doctrine classes (entities, repositories: App\Entity\Repository and migrations: App\Entity\Migrations).


All versions of silex-bootstrap with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
silex/silex Version ^2.0
monolog/monolog Version ^1.23
doctrine/dbal Version ^2.6
dflydev/doctrine-orm-service-provider Version ^2.0
doctrine/migrations Version ^1.5
knplabs/console-service-provider Version ^2.1
symfony/validator Version ^3.3.6
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 mareksokol/silex-bootstrap contains the following files

Loading the files please wait ....