{"id":13579206,"url":"https://github.com/dg/composer-cleaner","last_synced_at":"2025-04-04T15:11:50.210Z","repository":{"id":430187,"uuid":"28814261","full_name":"dg/composer-cleaner","owner":"dg","description":"Victor The Cleaner: removes unnecessary files from vendor directory","archived":false,"fork":false,"pushed_at":"2022-04-02T16:13:30.000Z","size":41,"stargazers_count":134,"open_issues_count":7,"forks_count":19,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-30T05:23:10.349Z","etag":null,"topics":["cleaner","composer","composer-plugin","php"],"latest_commit_sha":null,"homepage":"https://nette.org","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dg.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"dg"}},"created_at":"2015-01-05T13:46:29.000Z","updated_at":"2024-09-27T12:39:38.000Z","dependencies_parsed_at":"2022-08-06T09:15:15.690Z","dependency_job_id":null,"html_url":"https://github.com/dg/composer-cleaner","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dg%2Fcomposer-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dg%2Fcomposer-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dg%2Fcomposer-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dg%2Fcomposer-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dg","download_url":"https://codeload.github.com/dg/composer-cleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198469,"owners_count":20900081,"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":["cleaner","composer","composer-plugin","php"],"created_at":"2024-08-01T15:01:37.383Z","updated_at":"2025-04-04T15:11:50.194Z","avatar_url":"https://github.com/dg.png","language":"PHP","funding_links":["https://github.com/sponsors/dg"],"categories":["Plugins","PHP"],"sub_categories":["Support"],"readme":"Victor The Cleaner for Composer\n===============================\n\n[![Downloads this Month](https://img.shields.io/packagist/dm/dg/composer-cleaner.svg)](https://packagist.org/packages/dg/composer-cleaner)\n[![Tests](https://github.com/dg/composer-cleaner/workflows/Tests/badge.svg?branch=master)](https://github.com/dg/composer-cleaner/actions)\n\nThis tool removes unnecessary files and directories from Composer `vendor` directory.\n\nThe Cleaner leaves only directories containing the source files needed to use the libraries.\nThese are located according to the [autoload section](https://getcomposer.org/doc/04-schema.md#autoload) of `composer.json` in each installed library.\nConversely for example, tests are files that are not needed for use, so they are removed.\n\nInstallation\n------------\n\n```\ncomposer require dg/composer-cleaner\n```\n\nThen simply run `composer update` or `composer require ...` and the Cleaner automatically removes unnecessary files when new libraries are installed.\n\n\nConfiguration\n-------------\n\nSome libraries also requires other files/directories, which the the Cleaner judged to be unnecessary.\nIn this case, you can list them (specify paths to be ignored), in the configuration and the tool will keep them.\nOr you can specify that some libraries should not be cleaned at all.\n\nSimply add a `extra \u003e cleaner-ignore` section to `composer.json` file:\n\n```js\n{\n\t\"extra\": {\n\t\t\"cleaner-ignore\": {\n\t\t\t\"slevomat/eet-client\": [  // name of package\n\t\t\t\t\"wsdl*\"               // list of files or subdirectories, you can use wildcards `*` and `?`\n\t\t\t],\n\n\t\t\t\"mpdf/mpdf\": true         // ignores whole package\n\t\t}\n\t}\n}\n```\n\nSupport Project\n---------------\n\nDo you like Victor The Cleaner? Are you looking forward to the new features?\n\n[![Donate](https://files.nette.org/icons/donation-1.svg?)](https://nette.org/make-donation?to=composer-cleaner)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdg%2Fcomposer-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdg%2Fcomposer-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdg%2Fcomposer-cleaner/lists"}