{"id":23973380,"url":"https://github.com/zero-to-prod/psr4-varname","last_synced_at":"2026-02-12T08:04:50.763Z","repository":{"id":270598840,"uuid":"910864041","full_name":"zero-to-prod/psr4-varname","owner":"zero-to-prod","description":"Generates a valid PSR-4 Compliant variable name from a string.","archived":false,"fork":false,"pushed_at":"2025-09-01T22:42:41.000Z","size":169,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T21:38:29.263Z","etag":null,"topics":["php","psr-4"],"latest_commit_sha":null,"homepage":"https://zero-to-prod.github.io/psr4-varname/","language":"Dockerfile","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/zero-to-prod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"zero-to-prod"}},"created_at":"2025-01-01T17:03:24.000Z","updated_at":"2025-09-01T22:42:44.000Z","dependencies_parsed_at":"2025-01-01T17:46:57.694Z","dependency_job_id":"4444dec0-4939-4294-938b-5e19d85c1bb1","html_url":"https://github.com/zero-to-prod/psr4-varname","commit_stats":null,"previous_names":["zero-to-prod/psr4-varname"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/zero-to-prod/psr4-varname","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-to-prod%2Fpsr4-varname","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-to-prod%2Fpsr4-varname/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-to-prod%2Fpsr4-varname/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-to-prod%2Fpsr4-varname/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zero-to-prod","download_url":"https://codeload.github.com/zero-to-prod/psr4-varname/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero-to-prod%2Fpsr4-varname/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29361811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"online","status_checked_at":"2026-02-12T02:00:06.911Z","response_time":55,"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":["php","psr-4"],"created_at":"2025-01-07T04:57:51.911Z","updated_at":"2026-02-12T08:04:50.752Z","avatar_url":"https://github.com/zero-to-prod.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/zero-to-prod"],"categories":[],"sub_categories":[],"readme":"# Zerotoprod\\Psr4VarName\n\n![](art/logo.png)\n\n[![Repo](https://img.shields.io/badge/github-gray?logo=github)](https://github.com/zero-to-prod/psr4-varname)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/zero-to-prod/psr4-varname/test.yml?label=test)](https://github.com/zero-to-prod/psr4-varname/actions)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/zero-to-prod/psr4-varname/backwards_compatibility.yml?label=backwards_compatibility)](https://github.com/zero-to-prod/psr4-varname/actions)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/zero-to-prod/psr4-varname?color=blue)](https://packagist.org/packages/zero-to-prod/psr4-varname/stats)\n[![php](https://img.shields.io/packagist/php-v/zero-to-prod/psr4-varname.svg?color=purple)](https://packagist.org/packages/zero-to-prod/psr4-varname/stats)\n[![Packagist Version](https://img.shields.io/packagist/v/zero-to-prod/psr4-varname?color=f28d1a)](https://packagist.org/packages/zero-to-prod/psr4-varname)\n[![License](https://img.shields.io/packagist/l/zero-to-prod/psr4-varname?color=pink)](https://github.com/zero-to-prod/psr4-varname/blob/main/LICENSE.md)\n[![wakatime](https://wakatime.com/badge/github/zero-to-prod/psr4-varname.svg)](https://wakatime.com/badge/github/zero-to-prod/psr4-varname)\n[![Hits-of-Code](https://hitsofcode.com/github/zero-to-prod/data-model-adapter-openapi30?branch=main)](https://hitsofcode.com/github/zero-to-prod/data-model-adapter-openapi30/view?branch=main)\n\n- [Introduction](#introduction)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Documentation Publishing](#documentation-publishing)\n  - [Automatic Documentation Publishing](#automatic-documentation-publishing)\n- [Usage](#usage)\n- [Local Development](./LOCAL_DEVELOPMENT.md)\n- [Contributing](#contributing)\n\n## Introduction\n\nGenerates a valid PSR-4 Compliant variable name from a string.\n\n## Requirements\n\n- PHP 7.1 or higher.\n\n## Installation\n\nInstall `Zerotoprod\\Psr4VarName` via [Composer](https://getcomposer.org/):\n\n```shell\ncomposer require zero-to-prod/psr4-varname\n```\n\nThis will add the package to your project's dependencies and create an autoloader entry for it.\n\n## Documentation Publishing\n\nYou can publish this README to your local documentation directory.\n\nThis can be useful for providing documentation for AI agents.\n\nThis can be done using the included script:\n\n```bash\n# Publish to default location (./docs/zero-to-prod/psr4-varname)\nvendor/bin/zero-to-prod-psr4-varname\n\n# Publish to custom directory\nvendor/bin/zero-to-prod-psr4-varname /path/to/your/docs\n```\n\n### Automatic Documentation Publishing\n\nYou can automatically publish documentation by adding the following to your `composer.json`:\n\n```json\n{\n    \"scripts\": {\n        \"post-install-cmd\": [\n            \"zero-to-prod-psr4-varname\"\n        ],\n        \"post-update-cmd\": [\n            \"zero-to-prod-psr4-varname\"\n        ]\n    }\n}\n```\n\n## Usage\n\n```php\nuse Zerotoprod\\Psr4Classname\\VarName;\n\nVarName::generate('weird%characters*in^name'); // 'weird_characters_in_name';\n```\n\n## Contributing\n\nContributions, issues, and feature requests are welcome!\nFeel free to check the [issues](https://github.com/zero-to-prod/psr-varname/issues) page if you want to contribute.\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Commit changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Create a new Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzero-to-prod%2Fpsr4-varname","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzero-to-prod%2Fpsr4-varname","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzero-to-prod%2Fpsr4-varname/lists"}