2017 © Pedro Peláez
 

library manager

Manages the puli.json file of a Puli project.

image

puli/manager

Manages the puli.json file of a Puli project.

  • Saturday, December 3, 2016
  • by webmozart
  • Repository
  • 9 Watchers
  • 69 Stars
  • 39,268 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 20 Forks
  • 2 Open issues
  • 13 Versions
  • 2 % Grown

The README.md

The Puli Manager Component

Build Status Build status Scrutinizer Code Quality Latest Stable Version Total Downloads Dependency Status, (*1)

Latest release: 1.0.0-beta10, (*2)

PHP >= 5.3.9, (*3)

The Puli Manager Component builds a resource repository and discovery from a puli.json configuration in the root of your project:, (*4)

{
    "path-mappings": {
        "/app": "res"
    }
}

This mapping can be loaded with the [RepositoryManager]:, (*5)

use Puli\Manager\Api\Container;

$puli = new Container(getcwd());
$puli->start();

$repoManager = $puli->getRepositoryManager();
$repoManager->buildRepository();

The [RepositoryManager] also supports methods to manipulate the puli.json., (*6)

Modules

A puli.json configuration can also be placed in any module installed in your project. This module needs to be registered with Puli with the [ModuleManager]:, (*7)

$moduleManager = $puli->getModuleManager();

$moduleManager->installModule('path/to/module', 'vendor/module-name');

Usually, modules are installed automatically by Puli's Composer Plugin., (*8)

Managers

The following is a table of all managers supported by this package:, (*9)

Class Description
[RepositoryManager] Manages resource mappings and builds [ResourceRepository] instances
[DiscoveryManager] Manages bindings and binding types and builds [Discovery] instances
[AssetManager] Manages asset mappings used by the [UrlGenerator]
[ServerManager] Manages servers used by the [UrlGenerator]
[FactoryManager] Manages the generation of the GeneratedPuliFactory class
[ModuleManager] Manages the installed modules
[ConfigFileManager] Manages changes to a global config.json file
[RootModuleFileManager] Manages changes to the puli.json file of the project

Authors

Installation

Follow the Installation guide guide to install Puli in your project., (*10)

Documentation

Read the Puli Documentation if you want to learn more about Puli., (*11)

Contribute

Contributions to are very welcome!, (*12)

Support

If you are having problems, send a mail to bschussek@gmail.com or shout out to @webmozart on Twitter., (*13)

License

All contents of this package are licensed under the MIT license., (*14)

The Versions

03/12 2014

1.0.0-alpha1

1.0.0.0-alpha1

Generates Puli repositories from configured packages.

  Sources   Download

MIT

The Requires

 

by Bernhard Schussek