Download the PHP package ops-talent/apibundle without Composer

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

Api-bundle Build Status

This bundle provides various tools to rapidly develop RESTful API's & applications with Symfony 3.x.

Features:

Instalation

composer require opstalent/apibundle "dev-master

Bundle Depend on

"friendsofsymfony/oauth-server-bundle": "^1.5", "friendsofsymfony/user-bundle": "~2.0@dev"

Manual Configuration

1. Create entity

2. Create Repository and register as service

Repository should extend Opstalent\ApiBundle\Repository\BaseRepository

We need register repository as service service.yml `

3. Create Forms

Generator generate 3 forms AddType, EditType and FilterType We recommend to separate add form and filter form but separate.

AddType

``

EditType

``

FilterType

``

4. Create routing

We like to define routing for endpoint in separate file.

pages.yml This file is used both by api-bundle and security-bundle. Let's take a closer look to this line all endpoints use controllerOpstalentApiBundle:Actionand depend on action it will belist, get, post, put, delete. parametermethods: [GET]` is normal route parameter. unde option we have some custom params.

form

Define what form type should be used for example AppBundle\Form\Page\FilterType

serializerGroups(optional)

Define what serializer group should be used on different roles. Default is list for List action and get for all other action. If we want custom serializedGroups on this action we can define own table for example All option is used when action cannot match any other option and its mandatory if we define parameterserializerGroups`. Option owner is used to check is logged user is owner of this data and could be defined for all actions except list. Third value is role, and if user has this role (or more) he get all serializer Groups he match.

repository

is used to define what repository should be used for this action for example '@repository.page'

security

Security define how we want to secure our endpoint. For all actions default secure option is true and roles is ROLE_SUPER_ADMIN . There is third option where we define events for this endpoint. Full security example `

Generator

Generator is used to generate all files described above for us. All we need is Entity. To run generator we need type

php bin/console app:generatecrude

additional options

Recommended Security Bundle

opstalent/security-bundle

License

This bundle is under the MIT license. See the complete license in the bundle:

License


All versions of apibundle with dependencies

PHP Build Version
Package Version
Requires doctrine/orm Version ^2.5
friendsofsymfony/oauth-server-bundle Version ^1.5
friendsofsymfony/user-bundle Version ~2.0@dev
symfony/form Version ^3.2
symfony/serializer Version ^3.2
symfony/security Version ^3.2
symfony/event-dispatcher Version ^3.2
symfony/property-access Version ^3.2
symfony/http-foundation Version ^3.2
symfony/http-kernel Version ^3.2
symfony/routing Version ^3.2
doctrine/annotations Version ^1.4
symfony/dependency-injection Version ^3.2
doctrine/common Version ^2.7
symfony/property-info 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 ops-talent/apibundle contains the following files

Loading the files please wait ....