{"id":19031952,"url":"https://github.com/johnnymast/redbox-hooks","last_synced_at":"2026-05-15T23:06:47.617Z","repository":{"id":62534188,"uuid":"76430931","full_name":"johnnymast/redbox-hooks","owner":"johnnymast","description":"Quickly add filters (or actions) to your content like Wordpress does this. ","archived":false,"fork":false,"pushed_at":"2017-11-12T13:37:33.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T23:10:43.943Z","etag":null,"topics":["filter","php","redbox-hooks","wordpress"],"latest_commit_sha":null,"homepage":"https://github.com/johnnymast/redbox-hooks","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/johnnymast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-14T06:19:34.000Z","updated_at":"2024-12-13T20:19:38.000Z","dependencies_parsed_at":"2022-11-02T14:46:51.550Z","dependency_job_id":null,"html_url":"https://github.com/johnnymast/redbox-hooks","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/johnnymast/redbox-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnnymast","download_url":"https://codeload.github.com/johnnymast/redbox-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33082827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["filter","php","redbox-hooks","wordpress"],"created_at":"2024-11-08T21:25:51.677Z","updated_at":"2026-05-15T23:06:47.603Z","avatar_url":"https://github.com/johnnymast.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![redbox-hooks-logo-klein](https://cloud.githubusercontent.com/assets/121194/21081963/afe99cc8-bfd1-11e6-9ac6-25922c8b58b2.png)\n\n# Redbox-hooks\n\n[![Build Status](https://travis-ci.org/johnnymast/redbox-hooks.svg?branch=master)](https://travis-ci.org/johnnymast/redbox-hooks)[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/johnnymast/redbox-hooks/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/johnnymast/redbox-hooks/?branch=master)\n[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social\u0026label=Contact%20author)](https://twitter.com/intent/tweet?text=@mastjohnny)\n\nRedbox-hooks allow you use Wordpress actions and filters in your own code. The syntax is easy to use as you expect it to be after seeing it in Wordpress it self.\n\nIf you want to look at some demo's in details then read the manual for:\n \n* [Filters](FILTERS.md)\n* [Actions](ACTIONS.md)\n\n# Why was this package created?\nThis package was created because i am building a new modulair cms. I figured i could use a package like this and started building.\n\n\n#Fun fact\nI a am not a TDD guy but 50% of this code was written with the TDD concept in mind. Actually i was pretty much surprised on how it worked out and the speed the development came in.\n\n \n## Requirements\n\nThe following versions of PHP are supported by this version.\n\n+ PHP 5.6\n+ PHP 7.0\n+ PHP 7.1\n+ HHVM\n\n## Known issues\n\nIf you come across a bug/issue you can always report them to the [issue tracker](https://github.com/johnnymast/Sandbox/issues). While developing this package this is something things\ni noticed. Those things are listed below.\n\n### Filter/Action function callback is not called\nIf you have functions inside a namespace. So should add the full namespace to the callback function like this example here.\n\n```php\nnamespace Sandbox\\Demos;\n\nuse Sandbox\\Filters;\n\nfunction func_first($text = '')\n{\n    return '!!' . $text;\n}\nFilters::addFilter('prepend_at', 'Sandbox\\Demos\\func_first', 0);\n```\n \n## Author\n\nThis package is created and maintained by [Johnny Mast](https://github.com/johnnymast).\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 Johnny Mast\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymast%2Fredbox-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnymast%2Fredbox-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymast%2Fredbox-hooks/lists"}