Download the PHP package it-bens/api-platform-utilites-bundle without Composer

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

The API Platform Utilities Bundle

Maintenance Status Build Status Coverage Status

This bundle provides a set of useful abstract classes that encapsulate some logic for the usage of API platform. Furthermore, it implements an easily configurable input- and output transformer system that can be used without further classes.

How to install the bundle?

The bundle can be installed via Composer:

If you're using Symfony Flex, the bundle will be automatically enabled. For older apps, enable it in your Kernel class.

⚠ The ITB\ObjectTransformerBundle should be enabled, too.

What does this bundle provide and how to use it?

Let's start with the non-configurable stuff.

DataProvider

DataPersister

DataTransformer

Now we'll take a look at the DataTransformer system, that this bundle provides (or extends).

The typical use-case for the API Platform data transformer system is to transform DTOs to Entities/Objects and vice versa. This bundle uses the TransformationMediator from the Object Transformer Bundle.

Normally, you would probably write an implementation of the API Platform DataTransformerInterface for every DTO transformation that should be performed during the ordinary data flow, described here. That's quite a mess if there are a lot of resources, requests DTOs and response DTOs. The ApiInputTransformer and ApiOutputTransformer classes handle that complete process with a tiny bit of configuration.

After the bundle is enabled, a itb_api_platform_utilities.yaml file should be created. Every transformation the two transformers should handle, has to be registered here. Here's an example:

Every line represents a registered transformation. The configuration is allowed to be empty, which means that the transformers of this bundle won't be used. Otherwise, all the keys you see are required and the have to present fully qualified class names.

⚠ The transformers will use the TransformationMediator as described. That means there should be transformers, that can handle the registered transformations.

That's all you have to configure or implement.

What else?

For the configuration and usage of Object Transformer bundle see:

Contributing

I am really happy that the software developer community loves Open Source, like I do! ♥

That's why I appreciate every issue that is opened (preferably constructive) and every pull request that provides other or even better code to this package.

You are all breathtaking!


All versions of api-platform-utilites-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
api-platform/core Version ^2.6
it-bens/object-transformer-bundle Version 0.2.*
symfony/config Version ^4.4|^5.3
symfony/dependency-injection Version ^4.4|^5.3
symfony/http-kernel Version ^4.4|^5.3
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 it-bens/api-platform-utilites-bundle contains the following files

Loading the files please wait ...