ftven / common-lib
Common classes/services
1.2.1
2014-08-10 15:27 UTC
Requires
- php: >= 5.4.4
- guzzlehttp/guzzle: 4.*
- herrera-io/phar-update: 2.*
- swiftmailer/swiftmailer: 5.2.*
- symfony/console: 2.5.*
- symfony/filesystem: 2.5.*
- symfony/finder: 2.5.*
- symfony/process: 2.5.*
- symfony/yaml: 2.5.*
- twig/twig: 1.*
Requires (Dev)
- phpunit/phpunit: 4.*
- squizlabs/php_codesniffer: 1.*
Suggests
- ftven/cli-common: Build CLI Tools
This package is not auto-updated.
Last update: 2024-11-19 03:07:40 UTC
README
Usage
Add the dependency in your composer.json :
...
"require": {
...
"ftven/common-lib": "1.*"
}
Then update your dependency :
$ ./composer.phar update ftven/common-lib
Then you can use it directly in your scripts :
<?php
// ...
require_once '/path/to/vendor/autoload.php';
$filesystem = new Ftven\Build\Common\Service\Filesystem\FilesystemService();
$filesystem->setFilesystem(new Symfony\Component\Filesystem\Filesystem());
$content = $filesystem->readFile('/my/file');
// ...
Enjoy !
FTVEN Build Team.