{"id":23646366,"url":"https://github.com/code-architect/lumen-api","last_synced_at":"2025-11-11T22:30:15.819Z","repository":{"id":85256634,"uuid":"129208465","full_name":"code-architect/Lumen-API","owner":"code-architect","description":"Lumen API application using MySQL","archived":false,"fork":false,"pushed_at":"2018-06-02T23:25:55.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T13:34:01.850Z","etag":null,"topics":["lumen","lumen-php-framework","mongodb","mongodb-database","mysql-database","php","rest-api","restful-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-architect.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-12T07:08:09.000Z","updated_at":"2018-06-02T23:25:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff3fdb37-c188-44dd-b342-f52cd98190dd","html_url":"https://github.com/code-architect/Lumen-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FLumen-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FLumen-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FLumen-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FLumen-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-architect","download_url":"https://codeload.github.com/code-architect/Lumen-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239592972,"owners_count":19664855,"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":["lumen","lumen-php-framework","mongodb","mongodb-database","mysql-database","php","rest-api","restful-api"],"created_at":"2024-12-28T13:33:04.192Z","updated_at":"2025-11-11T22:30:15.785Z","avatar_url":"https://github.com/code-architect.png","language":"PHP","readme":"# Lumen API Development\n\nIn this project I ma using MongoDB and MySQL. The basic MongoDB has been covered till \n\"commit aa73c0e8dbb6d75dbbc46e5b80d734e1184e4c6b\". After that I have used MySQL. To use MongoDB I have been using this git package \nhttps://github.com/jenssegers/laravel-mongodb/blob/master/README.md\n\nRead their documentation \n\n\n__Installation using composer :__  \n`composer require jenssegers/mongodb`\n### Laravel version Compatibility\n\n Laravel  | Package\n:---------|:----------\n 4.2.x    | 2.0.x\n 5.0.x    | 2.1.x\n 5.1.x    | 2.2.x or 3.0.x\n 5.2.x    | 2.3.x or 3.0.x\n 5.3.x    | 3.1.x or 3.2.x\n 5.4.x    | 3.2.x\n 5.5.x    | 3.3.x\n 5.6.x    | 3.4.x\n\n\n\nadd the service provider in `bootstrap/app.php`.    \n\n```php\n$app-\u003eregister(Jenssegers\\Mongodb\\MongodbServiceProvider::class);\n\n$app-\u003ewithEloquent();\n``` \n\n###Changes in Model\n\nPlease change all `Jenssegers\\Mongodb\\Model` references to `Jenssegers\\Mongodb\\Eloquent\\Model` either at the top of your model files, or your registered alias.\n\n```php\nuse Jenssegers\\Mongodb\\Eloquent\\Model as Eloquent;\n\nclass User extends Eloquent {}\n```  \n\nEmbedded relations now return an `Illuminate\\Database\\Eloquent\\Collection` rather than a custom Collection class. If you were using one of the special methods that were available, convert them to Collection operations.\n\n```php\n$books = $user-\u003ebooks()-\u003esortBy('title');\n```\n\nConfiguration\n-------------\n\nChange your default database connection name in `/vendor/laravel/lumen-framework/config/database.php`:\n\n```php\n'default' =\u003e env('DB_CONNECTION', 'mongodb'),\n```\n\nAnd add a new mongodb connection:\n\n```php\n'mongodb' =\u003e [\n    'driver'   =\u003e 'mongodb',\n    'host'     =\u003e env('DB_HOST', 'localhost'),\n    'port'     =\u003e env('DB_PORT', 27017),\n    'database' =\u003e env('DB_DATABASE'),\n    'username' =\u003e env('DB_USERNAME'),\n    'password' =\u003e env('DB_PASSWORD'),\n    'options'  =\u003e [\n        'database' =\u003e 'admin' // sets the authentication database required by mongo 3\n    ]\n],\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-architect%2Flumen-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-architect%2Flumen-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-architect%2Flumen-api/lists"}