{"id":15024388,"url":"https://github.com/izica/php-styles","last_synced_at":"2026-02-18T10:02:47.155Z","repository":{"id":56995153,"uuid":"137660464","full_name":"izica/php-styles","owner":"izica","description":"inline css styles generator(conditions support)","archived":false,"fork":false,"pushed_at":"2023-04-09T01:09:07.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T12:51:45.110Z","etag":null,"topics":["css","css3","generator","html","inline","inline-css","inline-styles","php","php6","styles"],"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/izica.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-17T14:19:43.000Z","updated_at":"2023-08-31T21:54:21.000Z","dependencies_parsed_at":"2024-10-12T15:20:37.881Z","dependency_job_id":null,"html_url":"https://github.com/izica/php-styles","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/izica/php-styles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphp-styles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphp-styles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphp-styles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphp-styles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izica","download_url":"https://codeload.github.com/izica/php-styles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izica%2Fphp-styles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003293,"owners_count":26083555,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css","css3","generator","html","inline","inline-css","inline-styles","php","php6","styles"],"created_at":"2024-09-24T20:00:14.790Z","updated_at":"2025-10-10T08:05:18.048Z","avatar_url":"https://github.com/izica.png","language":"PHP","readme":"## Install\n```\ncomposer require izica/php-styles\n```\n\n## Usage\ngenerate inline tag style\n```php\n    $sStyles = (new PhpStylesInline())-\u003eopacity(0, $sContact == '')-\u003erender();\n    or\n    $sStyles = styles(true)-\u003eopacity(0, $sContact == '')-\u003erender();\n    or\n    $sStyles = styles()-\u003einline-\u003eopacity(0, $sContact == '')-\u003erender();\n```\ninsert style\n```html\n    \u003cdiv \u003c?=$sStyles?\u003e\u003e\n        \u003c?=$sContact;?\u003e\n    \u003c/div\u003e\n```\n\ngenerate style with class(class styles supports media query)\n```php\n    $sClassname = (new PhpStyles())-\u003emedia(0, 1024)-\u003eopacity(0, $sContact == '')-\u003erender();\n    or\n    $sClassname = styles()-\u003emedia(0, 1024)-\u003eopacity(0, $sContact == '')-\u003erender();\n    or\n    $sClassname = styles()\n        -\u003ename('contact-images')\n        -\u003emedia(0, 1024)\n        -\u003eset('display', 'flex'),\n        -\u003eset('align-items', 'center', $itemsCount \u003e 4),\n        -\u003eset('align-items', 'flex-start', $itemsCount \u003c= 4),\n        -\u003eset('color', '#ccc')\n        -\u003eopacity(0, $sContact == '')\n        -\u003erender();\n```\n\ninsert style\n```html\n    \u003cdiv class=\"\u003c?=$sClassname?\u003e\"\u003e\n        \u003c?=$sContact;?\u003e\n    \u003c/div\u003e\n```\n\n## Documentation\n* styles() - returns PhpStyles\n* styles(true) - returns PhpStylesInline\n* PhpStyles\n    * inline() - returns PhpStylesInline\n    * media(sizeFrom: number, sizeTo: number)\n    * set(key: string, value: string or number, condition: bool(not required)) - returns $this(if condition == false, not set)\n    * render(condition: bool(not required))- returns unique class name(if condition == false, returns empty string)\n    * opacity(value, condition(not required))\n    * name(className: string)\n* PhpStylesInline\n    * set(key: string, value: string or number, condition: bool(not required)) - returns $this(if condition == false, not set)\n    * render(condition: bool(not required))- returns unique class name(if condition == false, returns empty string)\n    * opacity(value, condition(not required))\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizica%2Fphp-styles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizica%2Fphp-styles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizica%2Fphp-styles/lists"}