Symfony Components
Installation
用composer去install任何一个symfony组件,在你的php项目中
composer require symfony/asset
composer require symfony/finder
写代码
require_once __DIR__ '/../vender/autoload.php';
这个加到对应的vender下面的autoload_**文件中
use Symfondy\Component\Finder\Finder;
$finder = new Finder();
$finder->in('../data/');
使用所有的components
if you want to use all of the symfony components, then instead of adding them one
by one, you can include the symfony/symfony package:
$ composer require symfony/symfony
Installation
用composer去install任何一个symfony组件,在你的php项目中
composer require symfony/asset
composer require symfony/finder
写代码
require_once __DIR__ '/../vender/autoload.php';
这个加到对应的vender下面的autoload_**文件中
use Symfondy\Component\Finder\Finder;
$finder = new Finder();
$finder->in('../data/');
使用所有的components
if you want to use all of the symfony components, then instead of adding them one
by one, you can include the symfony/symfony package:
$ composer require symfony/symfony