{"id":37000516,"url":"https://github.com/cosminstaicu/antheia","last_synced_at":"2026-01-14T00:03:20.866Z","repository":{"id":61251540,"uuid":"544562782","full_name":"cosminstaicu/antheia","owner":"cosminstaicu","description":"PHP frontend library for web-based apps.","archived":false,"fork":false,"pushed_at":"2025-12-31T10:14:35.000Z","size":13674,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T08:32:04.643Z","etag":null,"topics":["dark-theme","frontend","interface","php","responsive","webapp"],"latest_commit_sha":null,"homepage":"https://antheia.voipit.ro","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cosminstaicu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-02T19:37:35.000Z","updated_at":"2025-12-30T18:57:31.000Z","dependencies_parsed_at":"2024-01-08T07:28:25.133Z","dependency_job_id":"e01ac59f-396a-44b3-8589-b43d42e00924","html_url":"https://github.com/cosminstaicu/antheia","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"51fa8a8e96ea5a36d0f0544b0d1f1f2166beb009"},"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/cosminstaicu/antheia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminstaicu%2Fantheia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminstaicu%2Fantheia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminstaicu%2Fantheia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminstaicu%2Fantheia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosminstaicu","download_url":"https://codeload.github.com/cosminstaicu/antheia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminstaicu%2Fantheia/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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":["dark-theme","frontend","interface","php","responsive","webapp"],"created_at":"2026-01-14T00:03:20.000Z","updated_at":"2026-01-14T00:03:20.860Z","avatar_url":"https://github.com/cosminstaicu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Antheia\nA PHP library for building responsive, component-based web interfaces, designed for server-rendered web applications.\n\n\u003e ⚠️ Antheia 2.x is a major release with breaking changes. Versions 1.x.x are\nno longer supported. Please review the [changelog](CHANGELOG.md) before upgrading.\n\n![GitHub](https://img.shields.io/github/license/cosminstaicu/antheia)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/cosminstaicu/antheia?display_name=tag)\n![Live Demo](https://img.shields.io/website?down_message=Offline\u0026up_message=Online\u0026url=https%3A%2F%2Fantheia.voipit.ro)\n![PHP Version](https://img.shields.io/packagist/dependency-v/antheia/antheia/php)\n\n![03](https://user-images.githubusercontent.com/25685804/196055946-53d4f73d-f524-465d-adee-c9c762bb61a1.png)\n\nA live example of the interface (based on the current major version) is available at [antheia.voipit.ro](https://antheia.voipit.ro).  \nThe demo uses the content from the `examples` folder.\n\nPlease check the [project wiki](https://github.com/cosminstaicu/antheia/wiki) for more details about the library.\n\nAntheia is used in production by the Cloud PBX service **Accolades**, provided by [VoIPIT Romania](https://www.voipit.ro).\n\n## Installation\n\nUse [composer](https://getcomposer.org) to install Antheia into your project:\n\n```sh\ncomposer require antheia/antheia\n```\n\nAfter installation, you must configure a cache folder for Antheia before rendering any pages.\n\nThe cache folder:\n- must be writable by the application\n- must have a corresponding public URL\n- should not be publicly writable beyond what Antheia requires\n\nYou can configure it at runtime using:\n\n```php\nGlobals::setCache(string $url, string $path);\n```\n\nThe `$url` must point to the public URL of the cache directory,\nwhile `$path` must be the absolute filesystem path.\n\nFailing to configure the cache correctly will result in runtime errors.\n\n## Quick Start\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\nuse Antheia\\Antheia\\Globals;\nuse Antheia\\Antheia\\Page\\PageEmpty;\n// set up the cache folder\nGlobals::setCache('/cache', __DIR__ . '/public/cache');\n// create a new empty page\n$page = new PageEmpty();\n// output the page content\necho $page-\u003egetHtml();\n```\n\n`PageEmpty` represents the minimal Antheia page layout without predefined components.\n\nThis will render a minimal, empty Antheia page and output the generated HTML.\n\n## End to end testing\n\nMost HTML items can have a test attribute (with the default name `data-testid`)\nthat will be output only when test mode is enabled. This is useful when the final\nproduct needs e2e testing (for example, with\n[Playwright](https://github.com/microsoft/playwright))\n\nThis allows stable selectors for automated end-to-end tests without affecting production HTML output.\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\nuse Antheia\\Antheia\\Globals;\nuse Antheia\\Antheia\\Page\\PageEmpty;\nuse Antheia\\Antheia\\Classes\\Header\\TopRightMenu\\TopRightMenuUser;\n// set up the cache folder\nGlobals::setCache('/cache', __DIR__ . '/public/cache');\n// create a new empty page\n$page = new PageEmpty();\n// creates a menu on the top right side\n$option = new TopRightMenuUser();\n// defines the testid value\n$option-\u003esetTestId('topMenuUser');\n$option-\u003esetName('User name here');\n$option-\u003esetHref('#');\n$page-\u003eaddTopRightMenu($option);\n// If Globals::setTestMode() is called then the HTML tag for\n// the menu will contain data-testid = \"topMenuUser\"\n// If the method is not called then the HTML tag will not\n// have the attribute\nGlobals::setTestMode();\n// output the page content\necho $page-\u003egetHtml();\n```\n\n## Supported Versions\n\n- **2.x.x** — actively maintained\n- **1.x.x** — end of life, no longer supported\n\n## Documentation\n\nAll PHP code is documented using the PHPDoc standard. Most IDEs can provide code\ncompletion and inline documentation (the library is primarily developed using\n[Eclipse PDT](https://www.eclipse.org/pdt/)).\n\nJavaScript files are documented using the JSDoc standard.\n\nExamples located in the `examples` folder are explained in detail in the\n[project wiki](https://github.com/cosminstaicu/antheia/wiki).\n\nFor upgrade notes and breaking changes introduced in 2.0.0, refer to the changelog.\n\n## Security\n\nPlease review our [Security Policy](SECURITY.md) for reporting vulnerabilities.\n\n## Credits\n\nIcons used by the framework are provided by:\n - [IO Broker icons](https://github.com/ioBroker/ioBroker.icons-fatcow-hosting)\n - [Lucide Icons](https://github.com/lucide-icons/lucide)\n\nColor schemes for the predefined themes are provided freely by [Scheme Color](https://www.schemecolor.com).\n\nImages used by the framework are provided freely by [Unsplash](https://unsplash.com).\n\n# License\n\nAntheia is licensed under [Apache-2.0](https://github.com/cosminstaicu/antheia/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosminstaicu%2Fantheia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosminstaicu%2Fantheia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosminstaicu%2Fantheia/lists"}