{"id":22468997,"url":"https://github.com/impresscms-dev/filter-php-class-list-with-glob-like-rules-action","last_synced_at":"2025-08-02T08:33:04.182Z","repository":{"id":39913149,"uuid":"504876187","full_name":"impresscms-dev/filter-php-class-list-with-glob-like-rules-action","owner":"impresscms-dev","description":"GitHub action to filter PHP class list with Glob like syntax","archived":false,"fork":false,"pushed_at":"2024-11-01T03:18:02.000Z","size":635,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-10T04:19:07.644Z","etag":null,"topics":["filter","github-actions","hacktoberfest","php"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/impresscms-dev.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":"2022-06-18T15:11:29.000Z","updated_at":"2024-08-01T03:49:54.000Z","dependencies_parsed_at":"2024-03-27T09:26:14.175Z","dependency_job_id":"ad5f1a7a-44cb-4497-8c75-8e49f70d390a","html_url":"https://github.com/impresscms-dev/filter-php-class-list-with-glob-like-rules-action","commit_stats":{"total_commits":90,"total_committers":3,"mean_commits":30.0,"dds":"0.25555555555555554","last_synced_commit":"41998d232a7b7cc7fa373163960ef5bca342dcd5"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Ffilter-php-class-list-with-glob-like-rules-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Ffilter-php-class-list-with-glob-like-rules-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Ffilter-php-class-list-with-glob-like-rules-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Ffilter-php-class-list-with-glob-like-rules-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/impresscms-dev","download_url":"https://codeload.github.com/impresscms-dev/filter-php-class-list-with-glob-like-rules-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228456255,"owners_count":17922995,"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":["filter","github-actions","hacktoberfest","php"],"created_at":"2024-12-06T11:24:55.459Z","updated_at":"2025-08-02T08:33:04.172Z","avatar_url":"https://github.com/impresscms-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/github/license/impresscms-dev/filter-php-class-list-with-glob-like-rules-action.svg)](LICENSE)\n[![GitHub release](https://img.shields.io/github/release/impresscms-dev/filter-php-class-list-with-glob-like-rules-action.svg)](https://github.com/impresscms-dev/filter-php-class-list-with-glob-like-rules-action/releases)\n\n# Filter PHP class list with glob like rules\n\nGitHub action to filter PHP class list with [Glob like syntax](https://en.wikipedia.org/wiki/Glob_(programming)).\n\nWe recommend using this GitHub action with [impresscms-dev/generate-php-project-classes-list-file-action](https://github.com/impresscms-dev/generate-php-project-classes-list-file-action).\n\n## Usage\n\nTo use this action in your project, create a workflow file similar to the example below (Note: you may need to adjust some parts and arguments to fit your specific needs):\n```yaml\nname: Get filtered PHP classes list\n\non:\n  push:\n\njobs:\n  get_filtered_php_classes_list:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkouting project code...\n        uses: actions/checkout@v4\n\n      - name: Install PHP\n        uses: shivammathur/setup-php@v2\n        with:\n          php-version: 8.1\n          extensions: curl, gd, pdo_mysql, json, mbstring, pcre, session\n          ini-values: post_max_size=256M\n          coverage: none\n          tools: composer:v2\n\n      - name: Install Composer dependencies (with dev)\n        run: composer install --no-progress --prefer-dist --optimize-autoloader\n\n      - name: Getting PHP classes list...\n        uses: impresscms-dev/generate-php-project-classes-list-file-action@v1.0.0\n        with:\n          output_file: ./php-classes.lst\n\n      - uses: DamianReeves/write-file-action@v1.0\n        with:\n          path: ./filtering-rules.lst\n          contents: |\n            ImpressCMS\\**\n          write-mode: overwrite\n\n      - name: Filtering PHP classes list...\n        uses: impresscms-dev/filter-php-class-list-with-glob-like-rules-action@v2\n        with:\n          rules_file: ./filtering-rules.lst\n          input_file: ./php-classes.lst\n          output_file: ./php-classes-filtered.lst\n\n      - uses: actions/upload-artifact@v3\n        with:\n          name: my-artifact\n          path: ./php-classes-filtered.lst\n```\n\n## Arguments\n\nThis action supports the following arguments (specified under the `with` keyword in your workflow file):\n\n| Argument    | Required | Default value        | Description                       |\n|-------------|----------|----------------------|-----------------------------------|\n| rules_file | Yes      |                      | File with rules list (each rule separate line - like [.gitignore](https://git-scm.com/docs/gitignore)) |\n| input_file | Yes      |                      | File with PHP class names list |\n| output_file | Yes      |                      | File where result will be written |\n\n## How to contribute\n\nContributions are welcome! If you'd like to add new features or fix bugs:\n\n1. Fork the repository\n2. Create a new branch for your feature or bugfix\n3. Implement your changes\n4. Submit a pull request\n\nIf you're new to this process, check out GitHub's [Fork a repo](https://docs.github.com/en/get-started/quickstart/fork-a-repo) and [Creating a pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request) guides.\n\n## Reporting issues\n\nFound a bug or have a suggestion? Please use the [GitHub Issues](https://github.com/impresscms-dev/filter-php-class-list-with-glob-like-rules-action/issues) page to:\n\n- Report bugs\n- Request new features\n- Ask questions about the project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpresscms-dev%2Ffilter-php-class-list-with-glob-like-rules-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimpresscms-dev%2Ffilter-php-class-list-with-glob-like-rules-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpresscms-dev%2Ffilter-php-class-list-with-glob-like-rules-action/lists"}