{"id":16704430,"url":"https://github.com/wouterj/wouterjeloquentbundle","last_synced_at":"2025-04-13T05:06:48.540Z","repository":{"id":14530252,"uuid":"17244771","full_name":"wouterj/WouterJEloquentBundle","owner":"wouterj","description":"Integrates the Eloquent ORM in the Symfony framework","archived":false,"fork":false,"pushed_at":"2024-10-13T20:48:53.000Z","size":444,"stargazers_count":167,"open_issues_count":6,"forks_count":40,"subscribers_count":6,"default_branch":"2.x","last_synced_at":"2025-04-13T05:06:42.413Z","etag":null,"topics":["eloquent","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wouterj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.rst","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-02-27T10:14:45.000Z","updated_at":"2024-11-08T10:11:00.000Z","dependencies_parsed_at":"2024-03-23T14:44:07.922Z","dependency_job_id":null,"html_url":"https://github.com/wouterj/WouterJEloquentBundle","commit_stats":{"total_commits":252,"total_committers":23,"mean_commits":"10.956521739130435","dds":0.623015873015873,"last_synced_commit":"4339e281e5f685688aa22bf6facf02bd4dbf5c1d"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterj%2FWouterJEloquentBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterj%2FWouterJEloquentBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterj%2FWouterJEloquentBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterj%2FWouterJEloquentBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wouterj","download_url":"https://codeload.github.com/wouterj/WouterJEloquentBundle/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665748,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eloquent","symfony","symfony-bundle"],"created_at":"2024-10-12T19:12:48.667Z","updated_at":"2025-04-13T05:06:48.520Z","avatar_url":"https://github.com/wouterj.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WouterJEloquentBundle\n\nThe WouterJEloquentBundle claims to integrate the [Eloquent ORM][eloquent]\ninto the Symfony framework.\n\n\n## Maintained Releases\n\nOnly the latest release of this bundle is maintained. Backwards\ncompatible support for new versions of PHP, Symfony and Laravel are\nconsidered bug fixes. Dropping support for old versions is considered a\nfeature.\n\nNew releases will be made as much as once a week following semantic\nversioning. The default branch (2.x) will be released as minor or patch\nversion, depending on the changes with the last release (features or\nonly bug fixes).\n\n\n## Installation\n\n### Step 1: Download the Bundle\n\nOpen a command console, enter your project directory and run the\nfollowing command to download the latest stable version of this bundle:\n\n```bash\n$ composer require wouterj/eloquent-bundle\n```\n\nThis command requires you to have Composer installed globally, as explained\nin the [installation chapter][composer] of the Composer documentation.\n\nWhen you want to use useful make commands (e.g. ``make:model``), also\nmake sure you have the [Symfony MakerBundle][maker-bundle] installed.\n\n\n### Step 2: Enable the Bundle\n\nIf you're using [Symfony Flex][symfony-flex], the previous step already got\nyou up and running and you can skip this step!\n\nOtherwise, enable the bundle by adding it to the list of registered\nbundles in the `app/AppKernel.php` file of your project:\n\n```php\n\u003c?php\n// config/bundles.php\n\nreturn [\n    // ...\n    WouterJ\\EloquentBundle\\WouterJEloquentBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n\n### Step 3: Configure the Database\n\nTo use the Eloquent ORM, configure a connection by setting the correct\nenvironment variables in `.env.local`:\n\n```ini\n# .env.local\nDB_CONNECTION=mysql\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=symfony\nDB_USERNAME=root\nDB_PASSWORD=s3cr3t\n```\n\nIf you're not using [Symfony Flex][symfony-flex], create the configuration file\nyourself:\n\n```yaml\n# config/packages/eloquent.yaml\nwouterj_eloquent:\n    driver:   mysql\n    host:     localhost\n    database: db_name\n    username: root\n    password: pass\n    prefix:   ~\n```\n\nFor more information, refer to [the documentation](#table-of-content) below.\n\n\n## Table of Content\n\n1. [Installation](#installation)\n    1. [Step 1: Download the Bundle](#step-1-download-the-bundle)\n    1. [Step 2: Enable the Bundle](#step-2-enable-the-bundle)\n    1. [Step 3: Configure the Database](#step-3-configure-the-database)\n1. [Usage](docs/usage.rst)\n    1. [Query Builder](docs/usage.rst#query-builder)\n    1. [Eloquent ORM](docs/usage.rst#eloquent-orm)\n    1. [Using Services instead of Facades](docs/usage.rst#using-services-instead-of-facades)\n1. [Migrations and Seeding](docs/migrations.rst)\n    1. [Running seeders](docs/migrations.rst#running-seeders)\n    1. [Setting up](docs/migrations.rst#setting-up)\n    1. [Generating migrations](docs/migrations.rst#generating-migrations)\n    1. [Running migrations](docs/migrations.rst#running-migrations)\n    1. [Rolling migrations](docs/migrations.rst#rolling-back-migrations)\n    1. [Refreshing the database](docs/migrations.rst#refreshing-the-database)\n1. [Using Models in Forms](docs/forms.rst)\n    1. [Binding the Object to the Form](docs/forms.rst#binding-the-object-to-the-form)\n    1. [Form Type Guessing](docs/forms.rst#form-type-guessing)\n    1. [Form Validation](docs/forms.rst#form-validation)\n1. [Using the Eloquent User Provider](docs/security.rst)\n    1. [Creating the User Model](docs/security.rst#creating-the-user-model)\n    1. [Configuring the User Provider](docs/security.rst#configuring-the-user-provider)\n1. [Events and Observers](docs/events.rst)\n    1. [Register Listeners](docs/events.rst#register-listeners)\n    1. [Observers](docs/events.rst#observers)\n        1. [Observers as Services](docs/events.rst#observers-as-services)\n1. [Configuration](docs/configuration.rst)\n    1. [Full configuration](docs/configuration.rst#full-configuration)\n    1. [Connections](docs/configuration.rst#connections)\n        1. [Drivers](docs/configuration.rst#drivers)\n        1. [Default connection](docs/configuration.rst#default-connection)\n    1. [Eloquent](docs/configuration.rst#eloquent)\n    1. [Aliases](docs/configuration.rst#aliases)\n1. [License][license]\n1. [Contributing](#contributing)\n1. [Backwards Compatibility](#backwards-compatibility)\n\n\n## License\n\nThis project is licensed under the MIT license. For more information, see the\n[license][license] file included in this bundle.\n\n\n## Contributing\n\nI love contributors. You can submit fixes, report bugs, share your opinion,\nadvocate this bundle or just say \"hello\". I welcome anything that makes this\nproject better.\n\n\n[serializer]: http://symfony.com/doc/current/components/serializer.html\n[maker-bundle]: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html\n[eloquent]: http://laravel.com/docs/database\n[composer]: https://getcomposer.org/doc/00-intro.md\n[symfony-flex]: https://symfony.com/doc/current/setup/flex.html\n[license]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwouterj%2Fwouterjeloquentbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwouterj%2Fwouterjeloquentbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwouterj%2Fwouterjeloquentbundle/lists"}