Download the PHP package somnambulist/api-bundle without Composer

On this page you can find all versions of the php package somnambulist/api-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 api-bundle

Somnambulist API Bundle

GitHub Actions Build Status Issues License PHP Version Current Version

Provides several helpers and support objects for better handling League Fractal with Symfony. The integration with Fractal is based on Dingo API for Laravel: https://github.com/dingo/api

Requirements

Installation

Install using composer, or checkout / pull the files from github.com.

Usage

Add the SomnambulistApiBundle to your bundles.php list and add a config file in packages if you wish to configure the bundle. The following options can be set:

Extend the bundled ApiController and build your API.

Optionally you can:

BC Breaks in V5

V5 drops all previously deprecated methods and makes changes to the signatures of the transformer types. Transformer types are now readonly and cannot be modified once instantiated. This means that the constructor args have changed to include all options and the order has been revised.

All response types default to a data key name, including ObjectType that previously was null. Now, you must specify a null key to remove it. Using a data key allows for applying metadata more easily to the response object.

BC Breaks in V4

V4 updates to league/fractal 0.20.0. This adds many type hints to properties and methods. Specifically in TransformerAbstract, the various overridable arrays now require the array type hint.

In addition:

Package change in V3.5.0

From 3.5.0 samj/fractal-bundle has been replaced with somnambulist/fractal-bundle as samj has been abandoned and archived. The replacement provides the same service resolution and allows transformers to be tagged as well as auto-configured.

The only code change necessary is to replace SamjFractalBundle in bundles.php with SomnambulistFractalBundle.

BC Breaks in V3

From v3.0.0 the library has been re-namespaced to Somanmbulist\Bundles\ApiBundle. Be sure to update any references.

In addition:

BC Breaks in v2

From v2.0.0 the following changes have been made:

To switch from TransformerBinding replace each call to:

The constructor signatures are largely the same; except collection and pagerfanta have an additional key as the last argument, defaulted to data.

When updating, remember to update the exception converters in your somnambulist.yaml config file if using the included defaults.

Tests

PHPUnit 9+ is used for testing. Run tests via vendor/bin/phpunit.

Links


All versions of api-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
psr/log Version ^1|^2|^3
ramsey/uuid Version ^4.0
somnambulist/form-request-bundle Version ^2.0
somnambulist/fractal-bundle Version ^2.0
symfony/framework-bundle Version ^6.4|^7.0
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 somnambulist/api-bundle contains the following files

Loading the files please wait ....