Download the PHP package invis1ble/serializer-extension-bundle without Composer

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

SerializerExtensionBundle

CI Status Code Coverage Packagist

The SerializerExtensionBundle integrates invis1ble/symfony-serializer-extension into the Symfony framework.

Requirements

Version 1.1 adds Symfony 8 support while preserving the existing service IDs, URI factory alias, and normalizer priority. Existing ^1.0 Composer constraints accept this release. To explicitly select it:

Installation

Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.

Applications that use Symfony Flex

Open a command console, enter your project directory and execute:

Applications that don't use Symfony Flex

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

Usage

Enable the Symfony serializer in your application:

Inject Symfony\Component\Serializer\SerializerInterface and use the json format to serialize a PSR-7 UriInterface to a JSON string or deserialize one to Psr\Http\Message\UriInterface or GuzzleHttp\Psr7\Uri.

The bundle registers one serializer.normalizer service, invis1ble_serializer_extension.normalizer.uri, with priority 10, ahead of Symfony's object and property normalizers. The public service invis1ble_serializer_extension.uri_factory uses GuzzleHttp\Psr7\HttpFactory and is aliased to Psr\Http\Message\UriFactoryInterface for autowiring.

Service definitions now load from config/services.php, because Symfony 8 no longer supports XML service configuration. Applications that register the bundle need no configuration changes. The legacy XML files remain available for older Symfony applications that imported them directly; such imports must use the PHP files when upgrading to Symfony 8.

Development

Getting started

  1. If not already done, install Docker Compose (v2.10+)
  2. Run docker compose build --no-cache to build fresh images
  3. Run docker compose up -d --wait to start the Docker containers
  4. Run docker compose exec -T php composer install to install dependencies
  5. Run docker compose down --remove-orphans to stop the Docker containers.

The development image defaults to PHP 8.4. Set PHP_VERSION before building and starting Compose to select another version. CI checks PHP 8.1 / Symfony 6.4, PHP 8.2 / Symfony 7.4, PHP 8.4 / Symfony 8.0, and PHP 8.5 / Symfony 8.1 with stable dependencies and real platform requirements.

Validate the package and installed platform requirements with:

Check for Coding Standards violations

Run PHP_CodeSniffer checks:

Run PHP-CS-Fixer checks:

Run Rector checks:

Testing

The tests compile a minimal Symfony kernel, check service tags and autowiring, and exercise URI round trips, invalid data, normalizer ordering, and an HTTP request through the container serializer. To run them during development:

To run with coverage

License

The MIT License


All versions of serializer-extension-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.0 || ^8.0
symfony/config Version ^6.4 || ^7.0 || ^8.0
invis1ble/symfony-serializer-extension Version ^1.2
guzzlehttp/guzzle Version ^7.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 invis1ble/serializer-extension-bundle contains the following files

Loading the files please wait ...