{"id":20903499,"url":"https://github.com/phly/phlyrestfully","last_synced_at":"2025-04-06T03:11:33.266Z","repository":{"id":6311150,"uuid":"7546002","full_name":"phly/PhlyRestfully","owner":"phly","description":"ZF2 module for creating RESTful JSON APIs using HAL and API-Problem","archived":false,"fork":false,"pushed_at":"2022-02-01T22:05:03.000Z","size":1606,"stargazers_count":107,"open_issues_count":15,"forks_count":45,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-03-30T02:08:23.932Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/phly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-10T18:13:37.000Z","updated_at":"2024-12-06T10:14:57.000Z","dependencies_parsed_at":"2022-08-23T23:31:00.974Z","dependency_job_id":null,"html_url":"https://github.com/phly/PhlyRestfully","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/phly%2FPhlyRestfully","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2FPhlyRestfully/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2FPhlyRestfully/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2FPhlyRestfully/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phly","download_url":"https://codeload.github.com/phly/PhlyRestfully/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937213,"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":[],"created_at":"2024-11-18T13:13:42.868Z","updated_at":"2025-04-06T03:11:33.248Z","avatar_url":"https://github.com/phly.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PhlyRestfully: ZF2 Module for JSON REST Services\n================================================\n\n\u003e ## ABANDONED\n\u003e\n\u003e As of the 2.3.0 release, I have marked this module as abandoned.\n\u003e\n\u003e The module very quickly proved that the approach was worthwhile and useful,\n\u003e and became the seed for [Apigility](https://apigility.org/). That project has\n\u003e far surpassed its origins in this module, and added a ton of functionality\n\u003e this module never managed to create, such as content negotiation, file upload\n\u003e handling, entity and collection hydration, and more.\n\u003e\n\u003e As such, I recommend using Apigility in favor of PhlyRestfully for new\n\u003e projects, and that existing projects migrate to Apigility when possible.\n\nThis module provides structure and code for quickly implementing RESTful APIs\nthat use JSON as a transport.\n\nIt allows you to create RESTful JSON APIs that use the following standards:\n\n- [HAL](http://tools.ietf.org/html/draft-kelly-json-hal-03), used for creating\n  hypermedia links\n- [Problem API](http://tools.ietf.org/html/draft-nottingham-http-problem-02),\n  used for reporting API problems\n\n[Documentation is available at rtfd.org](https://phlyrestfully.readthedocs.org/en/latest/).\n\nUpgrading\n=========\n\nIf you were using version 1.0.0 or earlier (the version presented at PHP\nBenelux 2013), you will need to make some changes to your application to get it\nto work.\n\n- First, the terminology has changed, as have some class names, to reference\n  \"resources\" instead of \"items\"; this is more in line with RESTful terminology.\n    - As such, if you had any code using `PhlyRestfully\\HalItem`, it should now\n      reference `PhlyRestfully\\HalResource`. Similarly, in that class, you will\n      access the actual resource object now from the `resource` property\n      instead of the `item` property. (This should only affect those post-1.0.0).\n    - If you want to create link for an individual resource, use the\n      `forResource` method of `HalLinks`, and not the `forItem` method.\n    - `InvalidItemException` was renamed to `InvalidResourceException`.\n- A number of items were moved from the `RestfulJsonModel` to the\n  `RestfulJsonRenderer`.\n    - Hydrators\n    - The flag for displaying exception backtraces; in fact, you can use\n      the `view_manager.display_exceptions` configuration setting to set\n      this behavior.\n- All results from the `ResourceController` are now pushed to a `payload`\n  variable in the view model.\n    - Additionally, `ApiProblem`, `HalResource`, and `HalCollection` are\n      first-class objects, and are used as the `payload` values.\n- The `Links` plugin was renamed to `HalLinks`, and is now also available as\n  a view helper.\n\n\nLICENSE\n=======\n\nThis module is licensed using the BSD 2-Clause License:\n\n```\nCopyright (c) 2013, Matthew Weier O'Phinney\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n- Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n- Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphly%2Fphlyrestfully","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphly%2Fphlyrestfully","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphly%2Fphlyrestfully/lists"}