ftven/common-lib

常用类/服务

1.2.1 2014-08-10 15:27 UTC

This package is not auto-updated.

Last update: 2024-09-10 02:24:58 UTC


README

Build Status

用法

在您的 composer.json 中添加依赖

...
"require": {
    ...
    "ftven/common-lib": "1.*"
}

然后更新您的依赖

$ ./composer.phar update ftven/common-lib

然后您可以直接在脚本中使用它

<?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');

// ...

享受吧!

FTVEN 构建团队。