{"id":16183705,"url":"https://github.com/vendeka-nl/tailwind-config-php","last_synced_at":"2025-03-19T02:30:50.147Z","repository":{"id":143826350,"uuid":"254629506","full_name":"vendeka-nl/tailwind-config-php","owner":"vendeka-nl","description":"Save your tailwind.config.js as a PHP file.","archived":false,"fork":false,"pushed_at":"2023-09-29T10:20:11.000Z","size":69,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T14:06:54.568Z","etag":null,"topics":["npm-package","php","tailwind","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vendeka-nl.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":"2020-04-10T12:30:28.000Z","updated_at":"2024-10-22T08:50:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f05c6b5a-f12f-4e92-8e35-8513031d9b03","html_url":"https://github.com/vendeka-nl/tailwind-config-php","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"b3ac2b5397ea296ee79e6c9d8e087a33fba5af4d"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendeka-nl%2Ftailwind-config-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendeka-nl%2Ftailwind-config-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendeka-nl%2Ftailwind-config-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendeka-nl%2Ftailwind-config-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vendeka-nl","download_url":"https://codeload.github.com/vendeka-nl/tailwind-config-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960434,"owners_count":20375101,"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":["npm-package","php","tailwind","tailwindcss"],"created_at":"2024-10-10T07:06:12.314Z","updated_at":"2025-03-19T02:30:49.800Z","avatar_url":"https://github.com/vendeka-nl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Use your TailwindCSS config in PHP\n\n![npm (scoped)](https://img.shields.io/npm/v/@vendeka/tailwind-config-php)\n\n## Installation \n```\nnpm install --global @vendeka/tailwind-config-php\n```\n\n## Usage\n\nBrowse to the directory where your [TailwindCSS config file](https://tailwindcss.com/docs/configuration/) is located and execute:\n\n```\ntw2php\n```\n\nBy default it reads `tailwind.config.js` and writes to `tailwind.config.php`. You can override the file names using the `--config`/`-c` and `--output`/`-o` options.\n\n```\ntw2php -c tailwind.js -o config/tailwind.php\ntw2php --config tailwind.js --output config/tailwind.php\n```\n\nNow you can use the resolved config in your PHP as an object.\n\n```php\n\u003c?php\n$tailwind = require 'tailwind.config.php';\n$tailwind-\u003etheme-\u003ecolors-\u003egray-\u003e{500};\n```\n\nPlease remember that the PHP file does not automatically update.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvendeka-nl%2Ftailwind-config-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvendeka-nl%2Ftailwind-config-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvendeka-nl%2Ftailwind-config-php/lists"}