{"id":40079516,"url":"https://github.com/humweb/widgets","last_synced_at":"2026-01-19T09:04:59.646Z","repository":{"id":34138853,"uuid":"37973462","full_name":"humweb/widgets","owner":"humweb","description":"Widgets component","archived":false,"fork":false,"pushed_at":"2025-03-16T19:23:51.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-21T17:55:54.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://humboldtweb.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/humweb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-24T08:53:20.000Z","updated_at":"2025-03-16T19:23:06.000Z","dependencies_parsed_at":"2022-08-18T00:35:51.179Z","dependency_job_id":null,"html_url":"https://github.com/humweb/widgets","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/humweb/widgets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humweb%2Fwidgets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humweb%2Fwidgets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humweb%2Fwidgets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humweb%2Fwidgets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humweb","download_url":"https://codeload.github.com/humweb/widgets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humweb%2Fwidgets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-19T09:04:58.723Z","updated_at":"2026-01-19T09:04:59.638Z","avatar_url":"https://github.com/humweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Widgets\n\n[![Build Status](https://img.shields.io/travis/humweb/widgets/master.svg?style=flat-square)](https://travis-ci.org/humweb/widgets)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/humweb/widgets/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/humweb/widgets/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/humweb/widgets/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/humweb/widgets/?branch=master)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/b3b19bb7-3d29-44ac-ba51-d83723b10a6f/mini.png)](https://insight.sensiolabs.com/projects/b3b19bb7-3d29-44ac-ba51-d83723b10a6f)\n[![Total Downloads](https://img.shields.io/packagist/dt/humweb/widgets.svg?style=flat-square)](https://packagist.org/packages/humweb/widgets)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/humweb/widgets.svg?style=flat-square)](https://packagist.org/packages/humweb/widgets)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require humweb/widgets\n```\n\n## Usage\n\n**Register anonymous function handler**\n\n``` php\n$widgets = new WidgetFactory();\n\n$widgets-\u003eregister('foo', function($val = '') {\n    return 'bar'.$val;\n});\n\necho $widgets-\u003efoo('baz');\n```\n\n**Register class handler**\n``` php\n$widgets = new WidgetFactory();\n\n$widgets-\u003eregister('foo', 'Humweb\\Widgets\\Tests\\Fake\\FooWidget@render');\n// or\n// $widgets-\u003eregister('foo', 'Humweb\\Widgets\\Tests\\Fake\\FooWidget');\n\n// Check for registered widget\n$this-\u003ewidgets-\u003ehas('foo');\n\n// Renders\necho $this-\u003ewidgets-\u003efoo();\n```\n\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email ryun@humboldtweb.com instead of using the issue tracker.\n\n\n## Credits\n\n- [Ryan Shofner](https://github.com/ryun)\n- [All Contributors](../../contributors)\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumweb%2Fwidgets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumweb%2Fwidgets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumweb%2Fwidgets/lists"}