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

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

Silex Skeleton ReSTful

Build Status

Description

This skeleton (you can also call it boilerplate now) is built using Silex for general ReSTful (API) purposes.

Background

The very reason that this code exists is because I was having a hard time finding a good EXAMPLE on utilizing Silex for real life usage. I need a maintainable and testable code that made especially for API.

Of course there are many good slides and information out there, but most are just giving piece by piece explanation.

I'm not a good reader. I need an EXAMPLE!

FAQ

"Dude, you can design silex however you want. That's the beauty of it."

"Why don't you just use Symfony2 then?"

"Is this code actually working?"

"Enough chit-chat! Show me!"

What you need to know

Installation

You can do the conventional way which is clone this repository, or the easiest way, you can just directly download composer (if you don't have it yet) here:

http://getcomposer.org/download/

After the download is complete, you can start installing the required package by running this command:

You can add option "--dev" behind if you want to have the controller test working properly.

For this test, you need to put this sql command in MySQL.

Why do we need to have 2 same database? It's not compulsory. The idea is just to differentiate between our development and our test database environment.

Change the configurations to suit your environment. Don't worry, it's simple.

If everything has been installed & configured properly, try to put this url in your browser:

http://silex-skeleton-rest/item

You should see this result:

Try also put this in your url:

http://silex-skeleton-rest/item/1
http://silex-skeleton-rest/item/2

If you can see a nice json result out of it, you can try to use http method POST, PUT and DELETE to manipulate the database using your api.

Finally, for testing purposes, you can just run this command at your main directory:

Final

Take your time and look around the code to understand more and do not hesitate to let me know if you have an idea how to improve this.

You're ready to go! Enjoy!


All versions of silex-skeleton-rest with dependencies

PHP Build Version
Package Version
Requires silex/silex Version 1.0.*
symfony/class-loader Version 2.1.*
doctrine/dbal Version 2.2.*
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 makusu/silex-skeleton-rest contains the following files

Loading the files please wait ....