Download the PHP package juliangut/mapping without Composer

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

PHP version Latest Version License

Total Downloads Monthly Downloads

Mapping

Base mapping parsing library for any kind of project or library.

This library frees you from the most tedious part of mapping parsing by providing a set of functionalities to easily load mappings from PHP's Attributes or files of different formats (PHP, JSON, XML, YAML), so you can focus on the actual parsing of mappings into metadata you can use onwards.

Examples

Examples of packages fully implementing this library can be found at

Installation

Composer

To use yaml files mappings

Usage

Require composer autoload file

Drivers

Should retrieve parsed metadata stored in a specific format

File mapping

Any kind of format that can be returned on an array can be used

There are mapping traits to easily support four types of mapping files:

Attribute mapping

Annotation mapping

Annotations are deprecated and discouraged. Use Attribute mapping instead

Factory

Create your driver factory extending from Jgut\Mapping\Driver\AbstractDriverFactory, it allows to automatically get a mapping driver from mapping sources

Resolver

Given mapping source definitions, metadata resolver will resolve final metadata using a driver factory

It's not mandatory, but highly recommended, to add a PSR-16 cache implementation to metadata resolver, collecting mapping data from annotations and/or files and transforming them into metadata objects can be an intensive operation that benefits vastly of caching

Mapping source

Define where your mapping data is and how it will be parsed

Annotations

Base AbstractAnnotation class is provided to ease annotations creation.

getDefaultParameter defines which annotation property is considered the default ("value" by default). In this previous example event property will be set to "post_deserialize"

Contributing

Found a bug or have a feature request? Please open a new issue. Have a look at existing issues before.

See file CONTRIBUTING.md

License

See file LICENSE included with the source code for a copy of the license terms.


All versions of mapping with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
psr/simple-cache Version ^1.0|^2.0|^3.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 juliangut/mapping contains the following files

Loading the files please wait ....