Download the PHP package evaneos/silex-rest-skeleton without Composer

On this page you can find all versions of the php package evaneos/silex-rest-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 silex-rest-skeleton

Silex REST Skeleton

Build Status

You can create a new project using this skeleton by running the following command: $>echo n | composer create-project evaneos/silex-rest-skeleton <your-project-name> -s dev

After that, you'll have to:

  1. Setup git

$>composer git-setup [email protected]:<vendor-name>/<project-name>

You can see all remote via git remote -v

origin target you application repository and upstream the silex skeleton project

  1. Setup the env for docker

    • In infrastructure/environment/dev/php/config, create your blackfire-agent.env file from blackfire-agent.env.tpl to set your blackfire conf.
    • In infrastructure/environment/dev/tunnel, create your db.env file from db.env.tpl to set your ssh tunnel to the DB machine.
    • Build the docker images:
    • Go to infrastructure/dockerfiles directory
    • Type the following command $>make build
    • Run your docker containers:
    • Go to infrastructure/environment\dev directory
    • Type the following command $>docker-compose up -d
    • To kill your docker containers:
    • Go to infrastructure/environment\dev directory
    • Type the following command $>docker-compose kill
    • Type the following command $>docker-compose rm -f
  2. Setup and run your app

    • In config, create your config.yml file to setup your app
    • To access your app via http (if your docker containers are running):
    • Type the following command $>docker ps | grep rest-api-nginx and look for the port in the filed looking like this: 0.0.0.0:<your-port>->80tcp
    • Your app is now accessible at http://<your-machine-ip>:<your-port>/
  3. Start coding

    • Put your domain code in src
    • All the app code will go in app
    • Your new Controllers will go in app/API/Controllers and will be declared in a ServiceProvider
    • ControllerProviders will go in app/API/ControllerProviders and will be declared in a ServiceProvider
    • Your routes will be mounted through ControllerProviders in app/Application::mountRoutes
    • Your API resources will go in app/API/Resources
    • Your parameters converters will go in app/API/Converters and will be delcared in app/ServiceProviders/RestAPIServiceProvider or in a new ServiceProvider
    • Your ServiceProviders will go in app/ServiceProviders
    • Your Domain services will be declared in a new ServiceProvider and registered in app/Application::addDomainServices or be registered there directly
  4. Console

    At the directory root, you'll find a file named console which will let you launch commands

To add a command:


All versions of silex-rest-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
silex/silex Version ^2.0
doctrine/orm Version ^2.5
dflydev/doctrine-orm-service-provider Version ^2.0
firebase/php-jwt Version ^3.0
symfony/security Version ^3.0
jms/serializer Version ^1.1.0
willdurand/hateoas Version ^2.8
pagerfanta/pagerfanta Version ^1.0
hautelook/templated-uri-router Version ^2.0
symfony/validator Version ^2.1
reva2/config-service-provider Version ^2.0
monolog/monolog Version ^1.17
symfony/yaml Version ^3.0
incenteev/composer-parameter-handler Version ~2.0
symfony/polyfill-php55 Version ~1.0
evaneos/silex-jwt-provider Version ^2.0
ramsey/uuid Version ^3.4
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 evaneos/silex-rest-skeleton contains the following files

Loading the files please wait ....