ssnukala/sprinkle-crud5

CRUD Module for UserFrosting 5.0.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:userfrosting-sprinkle

v1.0.1-alpha 2024-02-04 21:57 UTC

This package is auto-updated.

Last update: 2024-04-03 03:22:04 UTC


README

CRUD Sprinkle for Userfrosting 5.0

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'.";