{"id":13824745,"url":"https://github.com/enomotodev/php-cs-fixer-commit","last_synced_at":"2025-04-13T19:31:49.856Z","repository":{"id":46573834,"uuid":"192463288","full_name":"enomotodev/php-cs-fixer-commit","owner":"enomotodev","description":"Create commit of php-cs-fixer","archived":false,"fork":false,"pushed_at":"2021-10-05T07:51:23.000Z","size":8,"stargazers_count":18,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T10:21:17.341Z","etag":null,"topics":["circleci","gitlab-ci","php"],"latest_commit_sha":null,"homepage":"","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/enomotodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-18T04:09:56.000Z","updated_at":"2023-05-24T16:21:19.000Z","dependencies_parsed_at":"2022-08-21T11:20:52.213Z","dependency_job_id":null,"html_url":"https://github.com/enomotodev/php-cs-fixer-commit","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomotodev%2Fphp-cs-fixer-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomotodev%2Fphp-cs-fixer-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomotodev%2Fphp-cs-fixer-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomotodev%2Fphp-cs-fixer-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enomotodev","download_url":"https://codeload.github.com/enomotodev/php-cs-fixer-commit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248767957,"owners_count":21158563,"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":["circleci","gitlab-ci","php"],"created_at":"2024-08-04T09:01:08.545Z","updated_at":"2025-04-13T19:31:49.565Z","avatar_url":"https://github.com/enomotodev.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# php-cs-fixer-commit\n\n## Installation\n\n```\n$ composer require --dev enomotodev/php-cs-fixer-commit\n```\n\n## Usage (GitHub + GitHub Actions)\n\n### Create workflow file\n\nIn `.github/workflows` , add a .yml or .yaml file for your workflow.\n\nFor example, `.github/workflows/php-cs-fixer-commit.yml` .\n\n```yaml\nname: php-cs-fixer-commit\n\non:\n  push:\n\njobs:\n  php-cs-fixer-commit:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Install Dependencies\n        run: composer install\n      - name: php-cs-fixer-commit\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        run: ./vendor/bin/php-cs-fixer-commit \u003cusername\u003e \u003cemail\u003e\n```\n\nNOTE: Please make sure you replace `\u003cusername\u003e` and `\u003cemail\u003e` with yours.\n\n## Usage (GitHub + CircleCI)\n\n### Setting GitHub personal access token to CircleCI\n\nGitHub personal access token is required for sending pull requests to your repository.\n\n1. Go to [your account's settings page](https://github.com/settings/tokens) and generate a personal access token with \"repo\" scope\n1. On CircleCI dashboard, go to your application's \"Project Settings\" -\u003e \"Environment Variables\"\n1. Add an environment variable `GITHUB_ACCESS_TOKEN` with your GitHub personal access token\n\n### Configure circle.yml\n\nConfigure your `circle.yml` or `.circleci/config.yml` to run `php-cs-fixer-commit`, for example:\n\n```yaml\nversion: 2\n\njobs:\n  build:\n    # ...\n    fixer:\n      steps:\n        # ...\n        - run:\n            name: php-cs-fixer-commit\n            command: ./vendor/bin/php-cs-fixer-commit \u003cusername\u003e \u003cemail\u003e\n```\n\nNOTE: Please make sure you replace `\u003cusername\u003e` and `\u003cemail\u003e` with yours.\n\n## Usage (GitLab + GitLabCI)\n\n### Setting GitLab personal access token to GitLabCI\n\nGitLab personal access token is required for sending merge requests to your repository.\n\n1. Go to [your account's settings page](https://gitlab.com/profile/personal_access_tokens) and generate a personal access token with \"api\" scope\n1. On GitLab dashboard, go to your application's \"Settings\" -\u003e \"CI /CD\" -\u003e \"Environment variables\"\n1. Add an environment variable `GITLAB_API_PRIVATE_TOKEN` with your GitLab personal access token\n\n### Configure .gitlab-ci.yml\n\nConfigure your `.gitlab-ci.yml` to run `php-cs-fixer-commit`, for example:\n\n```yaml\nstages:\n  # ...\n  - fixer\n\n# ...\n\nfixer-commit:\n  image: composer:latest\n  stage: fixer\n  script:\n    - \"composer install\"\n    - \"$COMPOSER_HOME/vendor/bin/php-cs-fixer-commit \u003cusername\u003e \u003cemail\u003e\"\n```\n\nNOTE: Please make sure you replace `\u003cusername\u003e` and `\u003cemail\u003e` with yours.\n\n## License\n\nphp-cs-fixer-commit is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenomotodev%2Fphp-cs-fixer-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenomotodev%2Fphp-cs-fixer-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenomotodev%2Fphp-cs-fixer-commit/lists"}