2017 © Pedro Peláez
 

library data-mapper-bundle

Integrates data-mapper in Symfony projects.

image

kassko/data-mapper-bundle

Integrates data-mapper in Symfony projects.

  • Sunday, June 12, 2016
  • by kassko
  • Repository
  • 2 Watchers
  • 2 Stars
  • 5,885 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 43 Versions
  • 3 % Grown

The README.md

data-mapper-bundle

Latest Stable Version Total Downloads Latest Unstable Version, (*1)

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., (*2)

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

Installation on Symfony 2

Add kassko/data-mapper-bundle to your composer.json file:, (*4)

"require": {
    "kassko/data-mapper-bundle": "~0.15.0"
}

Note that: * The second version number is used when compatibility is broken * The third for new feature * The fourth for hotfix * The first for new API or to go from pre-release to release (from 0 to 1), (*5)

Register the bundle in app/AppKernel.php:, (*6)

public function registerBundles()
{
    $bundles = array(
        new Kassko\Bundle\DataMapperBundle\KasskoDataMapperBundle(),
        new Kassko\Bundle\ClassResolverBundle\KasskoClassResolverBundle(),
    );
}

Services

The data-mapper-bundle provides services to facilitate the use of the data-mapper component features:, (*7)

kassko_data_mapper

It represents a Kassko\DataMapper\DataMapper instance., (*8)

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

Tags (dependency injection tags)

kassko_data_mapper.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., (*10)

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

kassko_data_mapper.mapping_loader

It helps exposing custom mapping loaders., (*12)

To know more about custom mapping loader creation (contract to implement etc.), please read the data-mapper documentation reference., (*13)

kassko_data_mapper.registry_item

Used to add services to the registry., (*14)

Tag your service:, (*15)

<service id="some_service">
    <tag name="kassko_data_mapper.registry_item" key="some_service_key">
</service>

And get your service:, (*16)

$someService = Registry::getInstance()['some_service_key'];

To know more about registry usefulness, please read the data-mapper documentation reference., (*17)

Configuration

kassko_data_mapper:
    mapping:
        default_resource_type: annotations # Default is "annotations" or other type (1).
        default_resource_dir: # Optional.
        default_provider_method: # Optional.
        bundles: #optional section
            some_bundle:
                resource_type: annotations # Default is "annotations" or other type (1).
                resource_dir: # The resource dir of the given bundle.
                provider_method: ~ # Required. Default value is null.
                objects: # Optional section.
                    some_object:
                        resource_type: # Optional.
                        resource_path: # Optional. The resource directory with the resource name. If not defined, data-mapper fallback to resource_name and prepend to it resource_dir (or default_resource_dir). So if resource_path is not defined, case resource_name and resource_dir (or default_resource_dir) must be defined.
                        resource_name: # Optional. Only the resource name (so without the directory).
                        provider_method: # Optional. Override default_provider_method.
                        object_class: # Required (full qualified object class name).
    cache:
        metadata_cache: # Optional section
            class: # Optional.
            id: # Optional.
            life_time: # Default is 0
            is_shared: # Default is false
            adapter_class: # Default is "Kassko\Bundle\DataMapperBundle\Adapter\Cache\DoctrineCacheAdapter"
        result_cache: # Optional section and same as metadata_cache
    logger_service: # Optional. A logger service name. Il will be used for logging in data-mapper component.

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

The Versions

12/06 2016

dev-kassko-class_resolver_config

dev-kassko-class_resolver_config

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

29/11 2015

0.14.x-dev

0.14.9999999.9999999-dev

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

29/11 2015

v0.14.4.0

0.14.4.0

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

07/10 2015

v0.14.3.0

0.14.3.0

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

12/04 2015

dev-kassko-expression_language

dev-kassko-expression_language

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

12/04 2015

v0.14.2.0

0.14.2.0

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

01/04 2015

dev-master

9999999-dev

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

01/04 2015

v0.15.0.0

0.15.0.0

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

25/03 2015

v0.14.1.0

0.14.1.0

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

24/03 2015

v0.14.0.0

0.14.0.0

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

17/03 2015

v0.13.0.1-alpha

0.13.0.1-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

11/03 2015

v0.13.0.0-alpha

0.13.0.0-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

11/03 2015

dev-allow_nested_objects_hydration

dev-allow_nested_objects_hydration

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

09/03 2015

v0.12.0.0-alpha

0.12.0.0-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

09/03 2015

dev-move_provider_to_data_source_concept

dev-move_provider_to_data_source_concept

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

06/03 2015

v0.11.1.0-alpha

0.11.1.0-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

05/01 2015

v0.11.0.0-alpha

0.11.0.0-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

23/12 2014

v0.10.0.0-alpha

0.10.0.0-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

17/12 2014

v0.9.0.1-alpha

0.9.0.1-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

The Development Requires

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

17/12 2014

v0.9.0.0-alpha

0.9.0.0-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

The Development Requires

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

10/12 2014

v0.8.0.0-alpha

0.8.0.0-alpha

Integrates data-mapper in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

09/12 2014

v0.7.0.0-alpha

0.7.0.0-alpha

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

30/11 2014

v0.6.0.0-alpha

0.6.0.0-alpha

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

26/11 2014

v0.5.0.1-alpha

0.5.0.1-alpha

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

25/11 2014

v0.5.0.0-alpha

0.5.0.0-alpha

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

24/11 2014

v0.4.0.0-alpha

0.4.0.0-alpha

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

20/11 2014

v0.3.0.0-alpha.1

0.3.0.0-alpha1

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

19/11 2014

v0.2.0-alpha.11

0.2.0.0-alpha11

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

16/11 2014

v0.2.0-alpha.10

0.2.0.0-alpha10

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

12/11 2014

v0.2.0-alpha.9

0.2.0.0-alpha9

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

11/11 2014

v0.2.0-alpha.8

0.2.0.0-alpha8

Integrates data-access in Symfony projects.

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

04/11 2014

0.2.0-alpha.7

0.2.0.0-alpha7

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

03/11 2014

0.2.0-alpha.6

0.2.0.0-alpha6

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

02/11 2014

0.2.0-alpha.5

0.2.0.0-alpha5

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

02/11 2014

0.2.0-alpha.4

0.2.0.0-alpha4

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

29/10 2014

0.2.0-alpha.3

0.2.0.0-alpha3

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

28/10 2014

0.2.0-alpha.2

0.2.0.0-alpha2

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

20/10 2014

0.2.0-alpha.1

0.2.0.0-alpha1

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

17/09 2014

0.1.4-alpha

0.1.4.0-alpha

  Sources   Download

The Requires

 

by Avatar kassko

orm repository entity access mapper data extract hydrate dao hydration

14/09 2014

0.1.3-alpha

0.1.3.0-alpha

  Sources   Download

The Requires

 

orm repository entity access mapper data extract hydrate dao hydration

14/09 2014

0.1.1-alpha

0.1.1.0-alpha

  Sources   Download

The Requires

 

orm repository entity access mapper data extract hydrate dao hydration

14/09 2014

0.1.2-alpha

0.1.2.0-alpha

  Sources   Download

The Requires

 

orm repository entity access mapper data extract hydrate dao hydration

14/09 2014

0.1.0-alpha

0.1.0.0-alpha

  Sources   Download

The Requires

 

orm repository entity access mapper data extract hydrate dao hydration