{"id":15732771,"url":"https://github.com/nilportugues/serializer-eloquent-driver","last_synced_at":"2025-03-13T05:31:14.150Z","repository":{"id":57027224,"uuid":"46619059","full_name":"nilportugues/serializer-eloquent-driver","owner":"nilportugues","description":"Driver for the Serializer library caring of Eloquent ORM model serialization","archived":false,"fork":false,"pushed_at":"2017-03-30T08:24:38.000Z","size":36,"stargazers_count":4,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T15:05:55.034Z","etag":null,"topics":["driver","eloquent-orm-models","serializer"],"latest_commit_sha":null,"homepage":"http://nilportugues.com","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/nilportugues.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-21T14:41:07.000Z","updated_at":"2019-12-18T09:27:04.000Z","dependencies_parsed_at":"2022-08-23T16:20:37.686Z","dependency_job_id":null,"html_url":"https://github.com/nilportugues/serializer-eloquent-driver","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fserializer-eloquent-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fserializer-eloquent-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fserializer-eloquent-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fserializer-eloquent-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilportugues","download_url":"https://codeload.github.com/nilportugues/serializer-eloquent-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351177,"owners_count":20276894,"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":["driver","eloquent-orm-models","serializer"],"created_at":"2024-10-04T00:22:18.963Z","updated_at":"2025-03-13T05:31:13.884Z","avatar_url":"https://github.com/nilportugues.png","language":"PHP","funding_links":["https://paypal.me/nilportugues"],"categories":[],"sub_categories":[],"readme":"# Serializer Driver for Eloquent ORM Models\n\n[![Build Status](https://travis-ci.org/nilportugues/serializer-eloquent-driver.svg)](https://travis-ci.org/nilportugues/serializer-eloquent-driver)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nilportugues/serializer-eloquent-driver/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nilportugues/serializer-eloquent-driver/?branch=master) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/497f9e58-e979-453e-bc04-b1501b88d027/mini.png?)](https://insight.sensiolabs.com/projects/497f9e58-e979-453e-bc04-b1501b88d027) \n[![Latest Stable Version](https://poser.pugx.org/nilportugues/serializer-eloquent/v/stable?)](https://packagist.org/packages/nilportugues/serializer-eloquent) \n[![Total Downloads](https://poser.pugx.org/nilportugues/serializer-eloquent/downloads?)](https://packagist.org/packages/nilportugues/serializer-eloquent) \n[![License](https://poser.pugx.org/nilportugues/serializer-eloquent/license?)](https://packagist.org/packages/nilportugues/serializer-eloquent) \n[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://paypal.me/nilportugues)\n\n## What?\nThis is a driver for the [Serializer](https://github.com/nilportugues/serializer) library caring of Eloquent ORM model serialization.\n\n## Why?\nDue to the popularity of Eloquent, specially in Laravel apps, a driver has been develop to unite all Eloquent serialization edge-cases for [Serializer](https://github.com/nilportugues/serializer) in a single library.\n\n\n## Installation\n\nUse [Composer](https://getcomposer.org) to install the package:\n\n```json\n$ composer require nilportugues/serializer-eloquent\n```\n\n## Usage\n\nThis will return an array following the [Serializer](https://github.com/nilportugues/serializer) format.\n\n```php\nuse NilPortugues\\Serializer\\Drivers\\Eloquent\\EloquentDriver;\n\n$serialized = EloquentDriver::serialize($value);\n```\n\n\n## Todo\n\nCode all examples provided in the Eloquent documentation for relationships as tests:\n\n- [X] One To One\n- [X] One To Many\n- [X] Has Many Through\n- [ ] Polymorphic Relations\n- [ ] Many To Many\n- [ ] Many To Many Polymorphic Relations\n\n## Contribute\n\nContributions to the package are always welcome!\n\n* Report any bugs or issues you find on the [issue tracker](https://github.com/nilportugues/serializer-eloquent-driver/issues/new).\n* You can grab the source code at the package's [Git repository](https://github.com/nilportugues/serializer-eloquent-driver).\n\n\n## Support\n\nGet in touch with me using one of the following means:\n\n - Emailing me at \u003ccontact@nilportugues.com\u003e\n - Opening an [Issue](https://github.com/nilportugues/serializer-eloquent-driver/issues/new)\n\n\n\n## Authors\n\n* [Nil Portugués Calderó](http://nilportugues.com)\n* [The Community Contributors](https://github.com/nilportugues/serializer-eloquent-driver/graphs/contributors)\n\n\n## License\nThe code base is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fserializer-eloquent-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilportugues%2Fserializer-eloquent-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fserializer-eloquent-driver/lists"}