Skip to content

@ 🔒 Symfony : Javascript Tools Bundle

Notifications You must be signed in to change notification settings

gaetanV/symfony_javascript

Repository files navigation

(c) Gaetan Vigneron


bear

SYJSJsBundle

Ce bundle comporte des commandes symfony qui permettent d'exporter en json les entités ORM et les formulaires depuis n'importe quel projet 'symfony 6' . Notamment pour les exploiter en Javascript

Command : Entity

php bin/console js:entity App\Entity\User --type=yes

Command : Form

php bin/console js:form App\Form\UserInscription 

Installation

Composer

Le repo git

   "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/gaetanV/symfony_javascript.git"
        }
    ],

La version du release

   "require": {
        ...
        "gaetanv/symfony-javascript" : "*"
    },

Config

Ajouté le bundle au fichier bundles.php

return [
    ...
    SYJS\JsBundle\SYJSJsBundle::class => ['all' => true]
];

Les parametres obligatoire dans votre repertoire config/packages/syjs_js.yaml

syjs_js:
    languages: ["fr",'en']

Vous êtes prêts à lancer les commandes

About

@ 🔒 Symfony : Javascript Tools Bundle

Resources

Stars

Watchers

Forks

Packages

No packages published