2017 © Pedro Peláez
 

composer-plugin composer

Autoloader (for nested classes) and installer for the Spoom framework

image

spoom-php/composer

Autoloader (for nested classes) and installer for the Spoom framework

  • Wednesday, May 10, 2017
  • by nSamu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 37 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 32 % Grown

The README.md

Spoom Composer Installer

Composer plugin for Spoom packages to provide nested class support, and handle package installation., (*1)

Usage

To use the installer, simply set the package type to be spoom (the installer supports spoom-extension too until v2.0.0) in your composer.json, and add it as a dependency like the following:, (*2)

{
  "type": "spoom",
  "require": {
    "spoom-php/composer": "^1.1.0"
  }
}

Autoload

The autoloader is extend the standard PSR-4 namespace definitions with nested class support. This means you could put more class in one file as long as the class name begins with the file's name, and the remain part MUST be separated with an uppercase letter (numbers always considered as a lowercase letter). For example the ExampleClassInterface class' files can be:, (*3)

  • ExampleClassInterface.php
  • ExampleClass.php
  • Example.php

Public files

Packages can define directories (or files) to copy into the Spoom's public directory during the installation process. It's useful for editable configuration or localization files. This can be done with adding an extra information into composer.json:, (*4)

{
  "extra": {
    "spoom": {
      "public": {
        "relative/path/to/source/": "relative/target/path/",
        "Autoload.php": "spoom-composer/directory/Autoload.php"
      }
    }
  }
}

Target path SHOULD start with a directory named after package's id and it will be relative from the Autoload::DIRECTORY directory., (*5)

The Versions

10/05 2017

dev-development

dev-development

Autoloader (for nested classes) and installer for the Spoom framework

  Sources   Download

MIT

The Requires

  • php ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Nagy Samu

composer autoload spoom

10/05 2017

dev-master

9999999-dev

Autoloader (for nested classes) and installer for the Spoom framework

  Sources   Download

MIT

The Requires

  • php ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Nagy Samu

composer autoload spoom

10/05 2017

v1.0.1

1.0.1.0

Autoloader (for nested classes) and installer for the Spoom framework

  Sources   Download

MIT

The Requires

  • php ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Nagy Samu

composer autoload spoom

17/04 2017

v1.0.0

1.0.0.0

Autoloader (for nested classes) and installer for the Spoom framework

  Sources   Download

MIT

The Requires

  • php ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

by Nagy Samu

composer autoload spoom