{"id":15106869,"url":"https://github.com/likesistemas/eloquent-external","last_synced_at":"2026-02-04T07:31:19.497Z","repository":{"id":40538225,"uuid":"473733720","full_name":"likesistemas/eloquent-external","owner":"likesistemas","description":"Usando o Eloquent sem nenhuma dependecia com o Laravel Framework.","archived":false,"fork":false,"pushed_at":"2022-05-03T16:46:42.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-10T12:44:41.161Z","etag":null,"topics":["eloquent","eloquent-orm","laravel-framework"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/likesistemas.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":null,"support":null}},"created_at":"2022-03-24T18:47:56.000Z","updated_at":"2022-06-08T12:53:15.000Z","dependencies_parsed_at":"2022-07-27T02:02:07.030Z","dependency_job_id":null,"html_url":"https://github.com/likesistemas/eloquent-external","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"likesistemas/composer-empty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likesistemas%2Feloquent-external","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likesistemas%2Feloquent-external/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likesistemas%2Feloquent-external/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likesistemas%2Feloquent-external/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/likesistemas","download_url":"https://codeload.github.com/likesistemas/eloquent-external/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247341114,"owners_count":20923376,"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","eloquent-orm","laravel-framework"],"created_at":"2024-09-25T21:02:19.674Z","updated_at":"2026-02-04T07:31:14.469Z","avatar_url":"https://github.com/likesistemas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Eloquent] Using Eloquent without any dependency on Laravel Framework [![CI](https://github.com/likesistemas/eloquent-external/actions/workflows/ci.yml/badge.svg)](https://github.com/likesistemas/eloquent-external/actions/workflows/ci.yml)\n\n## Installation\n\n```\ncomposer require likesistemas/eloquent-external\n```\n\n## How to use\n\n### Using class `ConfigBean`\n\n```php\n\nuse Illuminate\\Container\\Container;\nuse Like\\Database\\Config;\nuse Like\\Database\\ConfigBean;\nuse Like\\Database\\Eloquent;\n\n$config = new ConfigBean(\n  'host',\n  'user',\n  'password',\n  'db_name'\n);\n$config-\u003esetFactoryFolder(__DIR__ . \"/./factories/\"); # Folder where all the Eloquent factories are.\n$config-\u003eaddFakerProvider(ProdutoProvider::class); # Optional. Use to add new providers to Faker. Note: you can add as many as you like.\n\n# If you are configuring the settings in the same file that will start, you can pass the config by parameter.\nEloquent::init($config);\n\n# Or set using `illuminate\\container` and run init without parameter.\nContainer::getInstance()-\u003einstance(Config::class, $config);\n# Then call `init` wherever you think is best, without having to pass parameters.\nEloquent::init();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikesistemas%2Feloquent-external","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikesistemas%2Feloquent-external","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikesistemas%2Feloquent-external/lists"}