Download the PHP package kassko/data-mapper-bundle without Composer

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

data-mapper-bundle

Total Downloads

This bundle integrates the data-mapper component into Symfony applications. Which is a mapper that provides a lot of features to represent some raw data as objects.

To know more about this component and how to use it, please read the data-mapper documentation reference.

Installation on Symfony 2

Note that:

Using a version in 0.14 is recommended. Versions in 0.15 are no longer maintained.

You can install the library with composer and here is a good requirement:

Register the bundle in app/AppKernel.php:

DataMapper service

Get the service from your controller:

It represents a Kassko\DataMapper\DataMapper instance. To know more about this component and how to use it, please read the data-mapper documentation reference.

Configuration reference

(1) availables types are annotations, yaml, php, php_file, yaml_file. And maybe others, feel free to add custom mapping loaders.

Expression language integration

Expression language services

Add a provider

With the code above, the container is available in your provider. You can use it:

Object listener

The data-mapper needs to be able to retrieve an object listener from its full qualified class name. In order to do that, you have to register your object listener as a service and tag it with kassko_data_mapper.listener.

To know more about object listener, please read the data-mapper documentation reference.

Custom loader

DataMapper provide three formats for mapping: annotations, yaml and php. But you can use a custom mapping loader.

For more details about how to implement your custom loader, please read the data-mapper documentation reference.

Use a service in a persistent object without injecting it

You need to add it in the registry. You can do that by this way.

Tag your service:

And then you can get your service from your persistent object:


All versions of data-mapper-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
doctrine/common Version ^2.4|^3.0
symfony/framework-bundle Version ^2.6|^3.0|^4.0|^5.0
symfony/twig-bundle Version ^2.4|^3.0|^4.0|^5.0
zendframework/zend-stdlib Version ^2.3|^3.0
kassko/data-mapper Version ^1.0
kassko/class-resolver-bundle Version ^1.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 kassko/data-mapper-bundle contains the following files

Loading the files please wait ....