2017 © Pedro Peláez
 

symfony-bundle util-bundle

Small common tools used for Kitpages bundles

image

kitpages/util-bundle

Small common tools used for Kitpages bundles

  • Monday, September 9, 2013
  • by kitpages
  • Repository
  • 8 Watchers
  • 4 Stars
  • 32,889 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 9 Versions
  • 2 % Grown

The README.md

KitpagesUtilBundle

Only little methods for common problems : - create directories recursively - send a file to the browser for a download, sending an image or so what - ..., (*1)

Actually I believe nobody will be interested in including this Bundle in it's project. This bundle is globally deprecated., (*2)

It is used mainly by the KitpagesCmsBundle., (*3)

WARNING, works only on unix/linux systems., (*4)

Installation

If you are using DEPS :, (*5)

[KitpagesUtilBundle]
    git=https://github.com/kitpages/KitpagesUtilBundle.git
    target=/bundles/Kitpages/UtilBundle

Add Kitpages namespace to your autoloader :, (*6)

``` php <?php // app/autoload.php, (*7)

$loader->registerNamespaces(array( // ... 'Kitpages' => DIR.'/../vendor/bundles', ));, (*8)


Enable the bundle in your kernel : ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Kitpages\UtilBundle\KitpagesUtilBundle(), ); }

Then you can use the service which is named kitpages.util, (*9)

User's guide

Let's say you are in a controller, (*10)

``` php <?php, (*11)

$util = $this->get('kitpages.util'); // create recursively a directory $util->mkdirr("/tmp/test/foo/bar"); // delete recursively the test directory $util->rmdirr("/tmp/test"); // send a jpg image to the browser with a 3600 expire time $util->getFile("/tmp/toto.jpg", 3600) ```, (*12)

The Versions

09/09 2013

dev-master

9999999-dev https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

The Development Requires

tools

09/09 2013

v3.0.2

3.0.2.0 https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

The Development Requires

tools

04/06 2013

v3.0.1

3.0.1.0 https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

tools

12/10 2012

v2.1.0RC1

2.1.0.0-RC1 https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

tools

05/10 2012

v2.1.0BETA1

2.1.0.0-beta1 https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

tools

05/10 2012

v3.0.0

3.0.0.0 https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

tools

01/10 2012

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

tools

01/10 2012

v2.0

2.0.0.0 https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

tools

24/05 2012

v1.0.0

1.0.0.0 https://github.com/kitpages/KitpagesUtilBundle

Small common tools used for Kitpages bundles

  Sources   Download

BSD

The Requires

 

tools