ssnukala / sprinkle-crud5
为 UserFrosting 5.0 的 CRUD 模块。
v1.0.1-alpha
2024-02-04 21:57 UTC
Requires
- php: ^8.0
- birke/rememberme: ^2.0
- nikic/php-parser: ^4.2.2
- userfrosting/framework: ^5.0
- userfrosting/sprinkle-core: ^5.0
Requires (Dev)
- fakerphp/faker: ^1.17
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.2
- phpstan/phpstan: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-mockery: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
- phpunit/phpunit: ^9.5
- slam/phpstan-extensions: ^6.0
This package is auto-updated.
Last update: 2024-09-28 17:17:12 UTC
README
为 Userfrosting 5.0 的 CRUD Sprinkle
require 'vendor/autoload.php';
use Symfony\Component\Yaml\Yaml;
$data = [
'name' => 'Jane Smith',
'email' => 'jane@example.com',
'age' => 25,
];
$yaml = Yaml::dump($data);
file_put_contents('data.yaml', $yaml);
echo "Array converted to YAML and saved as 'data.yaml'.";
$data = [
'name' => 'Michael Johnson',
'email' => 'michael@example.com',
'age' => 35,
];
$yaml = yaml_emit($data);
file_put_contents('data.yaml', $yaml);
echo "Array converted to YAML and saved as 'data.yaml'.";