2017 © Pedro Peláez
 

library silex-file-loader

An easier way to load php files in Silex 2.

image

wake/silex-file-loader

An easier way to load php files in Silex 2.

  • Tuesday, December 19, 2017
  • by Wake
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Silex File Loader

An easier way to load php files in Silex 2., (*1)

Only load .php file and no need to fill file extension., (*2)

Usage

Autoload whole directory:, (*3)

$app->autoload ('path/to/load');

Autoload whole directory after specified files loaded:, (*4)

$app->autoload (['load-file-a-first', 'load-file-b-first'], 'path/to/load');

Load files:, (*5)

$app->load (['php-file-a', 'php-file-b'], 'path/to/files');

Load files structurally:, (*6)

$app->load (['subpath' => ['php-file-a', 'php-file-b']], 'path/to/files');

Installation

Add in your composer.json with following require entry:, (*7)

{
  "require": {
    "wake/Silex-File-Loader": "*"
  }
}

or using composer:, (*8)

$ composer require wake/Silex-File-Loader:*

then run composer install or composer update., (*9)

Trait

class MyApplication extends Silex\Application {
  use Silex\Application\FileLoaderTrait;
}

Feedback

Please feel free to open an issue and let me know if there is any thoughts or questions :smiley:, (*10)

License

Released under the MIT license, (*11)

The Versions

19/12 2017

dev-develop

dev-develop https://github.com/wake/Silex-File-Loader

An easier way to load php files in Silex 2.

  Sources   Download

MIT

The Requires

 

php silex loader silex2

24/08 2017

dev-master

9999999-dev https://github.com/wake/Silex-File-Loader

An easier way to load php files in Silex 2.

  Sources   Download

MIT

The Requires

 

php silex loader silex2