{"id":31009202,"url":"https://github.com/zoliszabo/rector-docker-composer","last_synced_at":"2026-05-08T07:31:57.846Z","repository":{"id":310365275,"uuid":"1039571187","full_name":"zoliszabo/rector-docker-composer","owner":"zoliszabo","description":"A wrapper Composer library for running Rector via Docker.","archived":false,"fork":false,"pushed_at":"2025-08-18T10:48:35.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-13T04:08:14.457Z","etag":null,"topics":["composer","composer-library","docker","php"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/zoliszabo.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,"zenodo":null}},"created_at":"2025-08-17T14:26:36.000Z","updated_at":"2025-08-18T10:46:23.000Z","dependencies_parsed_at":"2025-08-17T17:33:09.531Z","dependency_job_id":"80ad4db5-fbe0-4768-847f-b96bc87d3c90","html_url":"https://github.com/zoliszabo/rector-docker-composer","commit_stats":null,"previous_names":["zoliszabo/rector-docker-composer"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zoliszabo/rector-docker-composer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoliszabo%2Frector-docker-composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoliszabo%2Frector-docker-composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoliszabo%2Frector-docker-composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoliszabo%2Frector-docker-composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoliszabo","download_url":"https://codeload.github.com/zoliszabo/rector-docker-composer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoliszabo%2Frector-docker-composer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32770988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: 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":["composer","composer-library","docker","php"],"created_at":"2025-09-13T04:04:22.640Z","updated_at":"2026-05-08T07:31:57.815Z","avatar_url":"https://github.com/zoliszabo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rector Docker Composer Package\n\nA wrapper Composer library for running [Rector](https://getrector.com/) via Docker. This package provides a convenient way to use Rector without requiring PHP or Rector to be installed locally on your system.\n\n## What is this?\n\nThis Composer package provides a `rector-docker` command that wraps the [zoliszabo/rector-docker](https://github.com/zoliszabo/rector-docker) Docker image, making it easy to run Rector on your PHP projects through a simple command-line interface.\n\n## Key Benefits\n\n- **No local PHP installation required** - Run Rector regardless of your system's PHP version\n- **Always up-to-date** - Uses the latest Rector version from the Docker image\n- **Cross-platform compatibility** - Works on any system that supports Docker\n- **Intelligent terminal detection** - Automatically handles interactive vs non-interactive environments\n- **Simple integration** - Drop-in replacement for the standard `rector` command\n\n## Installation\n\n### Global Installation (Recommended)\n\nInstall the package globally to use the `rector-docker` command from anywhere:\n\n```bash\ncomposer global require zoliszabo/rector-docker\n```\n\nMake sure your global Composer `bin` directory is in your system's `PATH`. You can find the path with:\n\n```bash\ncomposer global config bin-dir --absolute\n```\n\n### Project-specific Installation\n\nYou can also install it as a development dependency in your project:\n\n```bash\ncomposer require --dev zoliszabo/rector-docker\n```\n\n## Usage\n\nOnce installed, navigate to your project directory and use `rector-docker` exactly like you would use the regular `rector` command.\n\n### Global Installation Usage\n\n```bash\n# Process using default rector.php configuration\nrector-docker process\n\n# Process your src directory\nrector-docker process src\n\n# Show available rules\nrector-docker list-rules\n\n# Generate a rector.php configuration file\nrector-docker init\n\n# Dry run to see what would be changed\nrector-docker process src --dry-run\n\n# Process with a specific configuration file\nrector-docker process src --config custom-rector.php\n```\n\n### Project-specific Installation Usage\n\nWhen installed as a project dependency, prefix commands with `vendor/bin/`:\n\n```bash\n# Process using default rector.php configuration\nvendor/bin/rector-docker process\n\n# Process your src directory\nvendor/bin/rector-docker process src\n\n# Or use composer exec\ncomposer exec rector-docker process src\n```\n\nAll arguments and options are passed directly to Rector running inside the Docker container.\n\n## How it Works\n\nThe `rector-docker` command:\n\n1. Detects if it's running in an interactive terminal environment\n2. Mounts your current working directory to `/app` inside the Docker container\n3. Runs the appropriate `docker run` command with the correct flags\n4. Forwards all your arguments to Rector inside the container\n\n### Interactive vs Non-Interactive Detection\n\nThe script automatically detects the environment:\n\n- **Interactive terminals**: Uses `-it` flags for proper terminal interaction\n- **CI/Scripts**: Omits `-it` flags to prevent hanging in non-interactive environments\n\n## Requirements\n\n- Docker installed and running on your system\n- Composer for package installation\n\n## Docker Image\n\nThis package uses the `zoliszabo/rector:latest` Docker image, which contains:\n\n- Latest PHP version\n- Latest Rector version\n- All necessary dependencies\n\n## Related Projects\n\n- [rector-docker](https://github.com/zoliszabo/rector-docker) - The underlying Docker image\n- [Rector](https://getrector.com/) - The PHP refactoring tool\n\n## License\n\nMIT License. See [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nIssues and pull requests are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoliszabo%2Frector-docker-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoliszabo%2Frector-docker-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoliszabo%2Frector-docker-composer/lists"}