yii2-extended / yii2-export-policy-onefile
An implementation of the yii2 export policy interface that creates only one file for each model
7.0.7
2024-12-08 14:05 UTC
Requires
- php: >=8.0
- yii2-extended/yii2-export-policy-interface: ^7
- yiisoft/yii2: ^2
Requires (Dev)
- dev-master
- 7.0.7
- 7.0.6
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.1
- 5.0.0
- 4.0.1
- 4.0.0
- 3.2.23
- 3.2.22
- 3.2.21
- 3.2.20
- 3.2.19
- 3.2.18
- 3.2.17
- 3.2.16
- 3.2.15
- 3.2.14
- 3.2.13
- 3.2.12
- 3.2.11
- 3.2.10
- 3.2.9
- 3.2.8
- 3.2.7
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.0
- 2.0.0
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-12-08 13:05:53 UTC
README
An implementation of the yii2 export policy interface that creates only one file for each model.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar yii2-extended/yii2-export-policy-onefile ^7
Basic Usage
This library may be used the following way :
use Yii2Extended\Yii2Export;
$policy = new Yii2ExportPolicyOnefile($folderPath, Record::find());
foreach($policy as $activeQuery)
{
/* @var $activeQuery \yii\db\ActiveQuery[Record] */
file_put_contents($policy->getCurrentFilePath().'.txt', var_export($activeQuery->all(), true));
}
License
MIT (See license file).