Download the PHP package rroek/rest-component-bundle without Composer

On this page you can find all versions of the php package rroek/rest-component-bundle. 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 rest-component-bundle

RestComponentBundle

Features

Table of Contents

[TOCM]

[TOC]

Introduction

This bundle is initially forked from Sulu CMS (a CMF based on Symfony CMF). It give you ability to to easier & faster make great RESTful HATEOAS Apis.

It require friendsofsymfony/rest-bundle & willdurand/hateoas-bundle. And is placed on top of this bundles.

Advantages

Easier. Faster. Make great RESTful HATEOAS APIs !

Use

Activate bundle

To use it, simply composer require rroek/rest-component-bundle and enable it : in AppKernel.php :

Make your Controller

For this example, we will take "MyPersonalEntity" class wich is an Doctrine Entity in our Symfony Project.

Our Entity will have an id, a label, a relation with another entity & getters/setters for it.

So let's see interresting things :

I want to make my Controller. it job is to give access to my entity & make is CRUD callable. We will use nelmio/NelmioApiDocBundle to generate our apiDoc. So lets create our Controller :


In :

MyBundle
    Controller
        RestController
            MyEntityRestController.php
    Entity
        MyPersonalEntity.php
    ...


Declare our routes :


And its all ! Your entity Full CRUD APi is created, it have allready CRUD methods and respect RESTful HATEOAS recommendations :

Enjoy !


All versions of rest-component-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
friendsofsymfony/rest-bundle Version ^2.3
willdurand/hateoas Version ^2.10
willdurand/hateoas-bundle Version ^1.2
goodby/csv Version ^1.3
jms/serializer-bundle Version ^2.1
symfony/config Version ~3.2
symfony/console Version ~3.2
symfony/dependency-injection Version ~3.2
symfony/framework-bundle Version ~3.2
symfony/monolog-bundle Version ^3.1
symfony/yaml Version ~3.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 rroek/rest-component-bundle contains the following files

Loading the files please wait ....