{"id":18360504,"url":"https://github.com/pivaldi/php-cs-fixer","last_synced_at":"2025-08-30T09:34:12.651Z","repository":{"id":7680648,"uuid":"41903255","full_name":"pivaldi/php-cs-fixer","owner":"pivaldi","description":"php-cs-fixer wrapper for the Emacs editor","archived":false,"fork":false,"pushed_at":"2025-03-30T23:31:25.000Z","size":61,"stargazers_count":20,"open_issues_count":1,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-18T11:04:25.681Z","etag":null,"topics":["emacs","emacs-configuration","php-cs-fixer"],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pivaldi.png","metadata":{"files":{"readme":"README.org","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"funding":[{"type":"buy_me_a_coffee","url":"https://buymeacoffee.com/pivaldi"}]}},"created_at":"2015-09-04T07:28:20.000Z","updated_at":"2025-03-30T23:31:29.000Z","dependencies_parsed_at":"2024-09-09T22:36:08.488Z","dependency_job_id":"7939f705-ea5b-41f3-8491-3d1faac70b25","html_url":"https://github.com/pivaldi/php-cs-fixer","commit_stats":null,"previous_names":["pivaldi/php-cs-fixer","ovya/php-cs-fixer"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/pivaldi/php-cs-fixer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivaldi%2Fphp-cs-fixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivaldi%2Fphp-cs-fixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivaldi%2Fphp-cs-fixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivaldi%2Fphp-cs-fixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pivaldi","download_url":"https://codeload.github.com/pivaldi/php-cs-fixer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivaldi%2Fphp-cs-fixer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272833298,"owners_count":25000870,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["emacs","emacs-configuration","php-cs-fixer"],"created_at":"2024-11-05T22:28:38.777Z","updated_at":"2025-08-30T09:34:12.619Z","avatar_url":"https://github.com/pivaldi.png","language":"Emacs Lisp","readme":"* PHP-CS-Fixer Wrapper for Emacs\n\n** Features\n\nAllows in the /Emacs/ editor to fix most issues in /PHP/ code when\nyou want to follow the coding standards /PSR-1/ and /PSR-2/.\n\nUnder the hood, this package provides the customisable /Elisp/ command\n/php-cs-fix/ wich wraps the command line /php-cs-fixer/ *version \u003e=2.0*\nprovided by the powerful [[http://cs.sensiolabs.org/][PHP Coding Standards Fixer]]\n\n** Installation\n*** System part\n\nInstall [[https://github.com/FriendsOfPHP/PHP-CS-Fixer][PHP-CS-Fixer]] so that the command line =php-cs-fixer= is\nexecutable in your system.\n\n*** Emacs part\n\n**** From Melpa\n\nThis package can be installed from [[https://melpa.org/#/php-cs-fixer][Melpa]] : =M-x package-install \u003cRET\u003e php-cs-fixer \u003cRET\u003e=\n\n**** Manually\n\nThis package requires that the =cl-lib= package was installed.\n\nTo install =php-cs-fixer.el=, place =php-cs-fixer.el= in a\ndirectory of your choice, add it to your load path and require\n=php-cs-fixer= writing this code in your emacs configuration file (aka .emacs) :\n\n#+BEGIN_SRC elisp\n    (add-to-list 'load-path \"/place/where/you/put/it/\")\n    (require 'php-cs-fixer)\n#+END_SRC\n\nEither evaluate both statements with =C-x C-e=, or restart /Emacs/.\n\n** Usage\n\nTry =M-x php-cs-fix [ret]= when editing a /PHP/ file.\n\nIf you want an automatic fix when saving all php files, place this code in your /Emacs/ configuration file :\n#+BEGIN_SRC elisp\n(add-hook 'before-save-hook 'php-cs-fixer-before-save)\n#+END_SRC\n\n** Customisable variables\n\n- =php-cs-fixer-command= is the =php-cs-fixer= command (default is =php-cs-fixer=) ;\n- =php-cs-fixer-config-option= is the =php-cs-fixer --config= option value (default is =nil=, see the file\n  =php-cs-fixer-config.php= for an example of configuration file) ;\n- =php-cs-fixer-rules-level-part-options= is the =php-cs-fixer --rules= base part options value (default is ='(\"@Symfony\")=) ;\n- =php-cs-fixer-rules-fixer-part-options= is the =php-cs-fixer --rules= exact rules part options\n  value (default is =(\"no_multiline_whitespace_before_semicolons\" \"concat_space\")=).\n- =php-cs-fixer-fix-popup-on-error= : should fixing a file popups an error buffer when it failed ?\\\\\n  Warning : when =nil= (the default), error fixing a file will calls the Emacs\n  function =warn= that can be inhibited by =warning-suppress-types=.\n\nTry =M-x customize-group [ret] php-cs-fixer [ret]= to modify the values of these variables.\n\n**  If you appreciate this project\n\n[[https://buymeacoffee.com/pivaldi][☕ Buy Me a Coffee]]\n","funding_links":[{"type":"buy_me_a_coffee","url":"https://buymeacoffee.com/pivaldi"},"https://buymeacoffee.com/pivaldi"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpivaldi%2Fphp-cs-fixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpivaldi%2Fphp-cs-fixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpivaldi%2Fphp-cs-fixer/lists"}