{"id":22468990,"url":"https://github.com/impresscms-dev/generate-php-project-classes-list-file-action","last_synced_at":"2026-04-02T14:22:42.085Z","repository":{"id":40731864,"uuid":"504644991","full_name":"impresscms-dev/generate-php-project-classes-list-file-action","owner":"impresscms-dev","description":"GitHub action to generate a file with PHP project classes list (works only with composer projects)","archived":false,"fork":false,"pushed_at":"2026-03-26T23:58:25.000Z","size":1567,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T11:14:34.075Z","etag":null,"topics":["generate","github-action","hacktoberfest","list","php"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-17T19:06:29.000Z","updated_at":"2026-03-26T23:58:27.000Z","dependencies_parsed_at":"2024-05-01T20:39:30.831Z","dependency_job_id":"4f11a500-7c37-41e3-91a9-74b9f9d3dc31","html_url":"https://github.com/impresscms-dev/generate-php-project-classes-list-file-action","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/impresscms-dev/generate-php-project-classes-list-file-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Fgenerate-php-project-classes-list-file-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Fgenerate-php-project-classes-list-file-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Fgenerate-php-project-classes-list-file-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Fgenerate-php-project-classes-list-file-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/impresscms-dev","download_url":"https://codeload.github.com/impresscms-dev/generate-php-project-classes-list-file-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impresscms-dev%2Fgenerate-php-project-classes-list-file-action/sbom","scorecard":{"id":486234,"data":{"date":"2025-08-11","repo":{"name":"github.com/impresscms-dev/generate-php-project-classes-list-file-action","commit":"82035c0bd87140b94597cb55153a28f400a292e3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Maintained","score":10,"reason":"27 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/autocommit.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/impresscms-dev/generate-php-project-classes-list-file-action/autocommit.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/autocommit.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/impresscms-dev/generate-php-project-classes-list-file-action/autocommit.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/autocommit.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/impresscms-dev/generate-php-project-classes-list-file-action/autocommit.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/autorelease.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/impresscms-dev/generate-php-project-classes-list-file-action/autorelease.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/impresscms-dev/generate-php-project-classes-list-file-action/dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependabot.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/impresscms-dev/generate-php-project-classes-list-file-action/dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/impresscms-dev/generate-php-project-classes-list-file-action/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/impresscms-dev/generate-php-project-classes-list-file-action/test.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/autocommit.yml:53","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:46","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/autocommit.yml:13","Warn: topLevel 'contents' permission set to 'write': .github/workflows/autorelease.yml:9","Warn: no topLevel permission defined: .github/workflows/dependabot.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/test.yml:14","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T17:52:57.413Z","repository_id":40731864,"created_at":"2025-08-19T17:52:57.414Z","updated_at":"2025-08-19T17:52:57.414Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["generate","github-action","hacktoberfest","list","php"],"created_at":"2024-12-06T11:24:53.387Z","updated_at":"2026-04-02T14:22:42.078Z","avatar_url":"https://github.com/impresscms-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/github/license/impresscms-dev/generate-php-project-classes-list-file-action.svg)](LICENSE) [![GitHub release](https://img.shields.io/github/release/impresscms-dev/generate-php-project-classes-list-file-action.svg)](https://github.com/impresscms-dev/generate-php-project-classes-list-file-action/releases)\n\n# Generate PHP Project Classes List File Action\n\nA GitHub Action that generates a comprehensive list of classes in your [PHP](https://php.net) project. This action is designed to work with projects that use [Composer](https://getcomposer.org) for dependency management.\n\n## Usage\n\nTo integrate this action into your project, create a GitHub workflow file similar to the example below. You can customize the configuration to match your project's specific requirements:\n```yaml\nname: Generate PHP Class List\n\non:\n  push:\n    branches: [main]\n\njobs:\n  generate-class-list:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4\n\n      - name: Setup PHP environment\n        uses: shivammathur/setup-php@v2\n        with:\n          php-version: 8.4\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\n        run: composer install --no-progress --prefer-dist --optimize-autoloader\n\n      - name: Generate PHP classes list\n        uses: impresscms-dev/generate-php-project-classes-list-file-action@v2\n        with:\n          output_file: ./php-classes.lst\n          # Optional: specify a different path if composer.json is not in the root\n          # project_path: ./src\n\n      - name: Upload classes list as artifact\n        uses: actions/upload-artifact@v4\n        with:\n          name: php-classes-list\n          path: ./php-classes.lst\n```\n\n## Prerequisites\n\nBefore using this action, ensure your workflow has:\n\n1. PHP installed and configured\n2. Composer setup and available\n\nThe example workflow above demonstrates how to properly configure these prerequisites using the [`shivammathur/setup-php`](https://github.com/marketplace/actions/setup-php-action) action.\n\n## Configuration Options\n\nThis action accepts the following parameters in the `with` section of your workflow:\n\n| Parameter    | Required | Default | Description                                           |\n|-------------|----------|---------|-------------------------------------------------------|\n| output_file | Yes      | -       | Destination file path for the generated classes list  |\n| project_path | No       | `.`     | Path to the directory containing your composer.json   |\n\n### Examples\n\n**Basic Usage:**\n\nUse this configuration when your `composer.json` file is located in the root directory of your repository. This is the most common setup for PHP projects.\n\n```yaml\n- name: Generate PHP classes list\n  uses: impresscms-dev/generate-php-project-classes-list-file-action@v2\n  with:\n    output_file: ./php-classes.lst\n```\n\n**With Custom Project Path:**\n\nUse this configuration when your PHP project is in a subdirectory or when you have multiple PHP projects in a monorepo structure. This allows you to specify exactly which project's classes should be listed.\n\n```yaml\n- name: Generate PHP classes list\n  uses: impresscms-dev/generate-php-project-classes-list-file-action@v2\n  with:\n    output_file: ./php-classes.lst\n    project_path: ./src\n```\n\n**Generating Multiple Class Lists:**\n\nFor repositories with multiple PHP projects, you can run the action multiple times with different configurations to generate separate class lists for each project.\n\n```yaml\n- name: Generate main project classes list\n  uses: impresscms-dev/generate-php-project-classes-list-file-action@v2\n  with:\n    output_file: ./main-classes.lst\n    project_path: ./main\n\n- name: Generate API project classes list\n  uses: impresscms-dev/generate-php-project-classes-list-file-action@v2\n  with:\n    output_file: ./api-classes.lst\n    project_path: ./api\n```\n\n## Development\n\n### Local Setup\n\nFollow these steps to set up and work with the development environment for this action:\n\n#### 1. Install Dependencies\n\nFirst, install all required npm packages:\n\n```bash\nnpm install\n```\n\n#### 2. Build the Action\n\nCompile the source code using esbuild:\n\n```bash\nnpm run pack\n```\n\nThis creates a bundled version of the action in the `dist/` directory. For GitHub Actions, this directory must be committed to the repository as it contains the executable code that runs when others use this action.\n\nNote: If you forget to update the `dist/` folder after making changes, don't worry - there's a CI workflow that automatically builds and updates it when pull requests are submitted.\n\n#### 3. Run Tests\n\nExecute the test suite to verify functionality:\n\n```bash\nnpm test\n```\n\n#### 4. Code Quality\n\nCheck code quality with ESLint:\n\n```bash\nnpm run lint\n```\n\nAutomatically fix linting issues when possible:\n\n```bash\nnpm run lint:fix\n```\n\n#### 5. Complete Verification\n\nRun all checks (linting, building, and testing) in one command:\n\n```bash\nnpm run all\n```\n\nThis is particularly useful before submitting a pull request.\n\n## Contributing\n\nContributions are welcome! To contribute to this project:\n\n1. [Fork the repository](https://github.com/impresscms-dev/generate-php-project-classes-list-file-action/fork)\n2. Create a feature branch and implement your changes\n3. Ensure tests pass and code meets quality standards\n4. [Submit a pull request](https://github.com/impresscms-dev/generate-php-project-classes-list-file-action/compare)\n\nFor bug reports, questions, or feature requests, please use the [issues section](https://github.com/impresscms-dev/generate-php-project-classes-list-file-action/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpresscms-dev%2Fgenerate-php-project-classes-list-file-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimpresscms-dev%2Fgenerate-php-project-classes-list-file-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpresscms-dev%2Fgenerate-php-project-classes-list-file-action/lists"}