{"id":17753341,"url":"https://github.com/joubertredrat/presenthor","last_synced_at":"2025-04-01T10:43:51.118Z","repository":{"id":62534288,"uuid":"210670711","full_name":"joubertredrat/presenthor","owner":"joubertredrat","description":"The crazy presenter pattern library","archived":false,"fork":false,"pushed_at":"2019-10-14T19:09:37.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-23T09:23:50.864Z","etag":null,"topics":["crazy-things","design-pattern","design-patterns","php","php-lib","php-library","php7","presenter"],"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/joubertredrat.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":"2019-09-24T18:24:58.000Z","updated_at":"2019-10-14T19:07:54.000Z","dependencies_parsed_at":"2022-11-02T15:00:28.783Z","dependency_job_id":null,"html_url":"https://github.com/joubertredrat/presenthor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joubertredrat%2Fpresenthor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joubertredrat%2Fpresenthor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joubertredrat%2Fpresenthor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joubertredrat%2Fpresenthor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joubertredrat","download_url":"https://codeload.github.com/joubertredrat/presenthor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628398,"owners_count":20808105,"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":["crazy-things","design-pattern","design-patterns","php","php-lib","php-library","php7","presenter"],"created_at":"2024-10-26T13:42:10.492Z","updated_at":"2025-04-01T10:43:51.100Z","avatar_url":"https://github.com/joubertredrat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Presenthor\n\n[![Build Status](https://travis-ci.org/joubertredrat/presenthor.svg?branch=master)](https://travis-ci.org/joubertredrat/presenthor)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/joubertredrat/presenthor/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/joubertredrat/presenthor/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/joubertredrat/presenthor/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/joubertredrat/presenthor/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/joubertredrat/presenthor/badges/build.png?b=master)](https://scrutinizer-ci.com/g/joubertredrat/presenthor/build-status/master)\n[![Latest Stable Version](https://poser.pugx.org/redrat/presenthor/v/stable)](https://packagist.org/packages/redrat/presenthor)\n[![Total Downloads](https://poser.pugx.org/redrat/presenthor/downloads)](https://packagist.org/packages/redrat/presenthor)\n[![License](https://poser.pugx.org/redrat/presenthor/license)](https://packagist.org/packages/redrat/presenthor)\n\nThe crazy presenter pattern library\n\n#### First question, why?\n\nBecause I'm a polemic person and I don't like serializes. Serialize is good? Yes, but for me, in many times is a big solution to solve a little problem.\n\n#### Okay, how to install then?\n\nEasy my friend, install from composer\n\n```bash\ncomposer require redrat/presenthor\n```\n\n#### How to use?\n\nThis library is separated in two parts, an `Item` and `Bag`. \nAll parts implements `OutputInterface`, then output `array` or json in string.\n\n##### Item\n\nAn `Item` basically contains a data that will output `array` or `json` and you should to implement in your project based on `ItemInterface` or `ItemInjectableInterface`.\n\n##### Bag\n\nA `Bag` is a collection of `ItemInterface` and you can implement yours based on `ItemBagInterface` or use `ItemBag` implemented in this library.\n\n#### Example\n\nYou can view an implementation example in https://github.com/joubertredrat/presenthor-example.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoubertredrat%2Fpresenthor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoubertredrat%2Fpresenthor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoubertredrat%2Fpresenthor/lists"}