{"id":29420062,"url":"https://github.com/allebb/netbeans-psr-formatting","last_synced_at":"2025-07-12T01:15:33.300Z","repository":{"id":26287023,"uuid":"29734678","full_name":"allebb/netbeans-psr-formatting","owner":"allebb","description":"NetBeans configuration settings for PSR 1\u00262","archived":false,"fork":false,"pushed_at":"2017-01-05T22:49:54.000Z","size":11,"stargazers_count":152,"open_issues_count":3,"forks_count":16,"subscribers_count":26,"default_branch":"master","last_synced_at":"2023-11-07T15:22:17.267Z","etag":null,"topics":["auto-formatter","netbeans","php","psr1","psr2"],"latest_commit_sha":null,"homepage":null,"language":null,"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/allebb.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}},"created_at":"2015-01-23T13:59:28.000Z","updated_at":"2023-07-24T07:23:14.000Z","dependencies_parsed_at":"2022-08-26T20:21:54.801Z","dependency_job_id":null,"html_url":"https://github.com/allebb/netbeans-psr-formatting","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"purl":"pkg:github/allebb/netbeans-psr-formatting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fnetbeans-psr-formatting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fnetbeans-psr-formatting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fnetbeans-psr-formatting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fnetbeans-psr-formatting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allebb","download_url":"https://codeload.github.com/allebb/netbeans-psr-formatting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fnetbeans-psr-formatting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264922926,"owners_count":23683707,"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":["auto-formatter","netbeans","php","psr1","psr2"],"created_at":"2025-07-12T01:15:30.402Z","updated_at":"2025-07-12T01:15:33.242Z","avatar_url":"https://github.com/allebb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSR auto-formatting for NetBeans\n\nThis repository provides source code auto-formatting settings for PHP [PSR1](http://www.php-fig.org/psr/psr-1/) and [PSR2](http://www.php-fig.org/psr/psr-2/) standards.\n\nAlthough [NetBeans](https://netbeans.org/) does not provide automatic formatting support for all of the PSR1 and PSR2 'rules' (eg. refactoring class and method name case) I have done my best to implement as much as possible.\n\nThe result of using this configuration is, once imported you can then use the ```Source \u003e Format``` function (``ALT``+``SHIFT``+``F`` on Windows and Linux) or (``CTRL``+``SHIFT``+``F`` on Mac) in NetBeans the PHP code will automatically be formatted to match PSR1/PSR2 syntax format.\n\n## Requirements\n\n* [NetBeans](https://netbeans.org/) (Tested and developed on v8.2 and v8.1 but should work fine on other versions too!)\n\n## License\n\nAll things have a license I guess, so keeping it plain and simple, these files are released under the [MIT license](LICENSE).\n\n## Support\n\nI am happy to provide support via. my personal email address, so if you need a hand or want to give me some feedback please drop me an email at: [ballen@bobbyallen.me](mailto:ballen@bobbyallen.me).\n\n## Installation\n\n* Download the [latest release](https://github.com/bobsta63/netbeans-psr-formatting/releases) (specifically the __ZIP__ version) to your machine (If you're using Netbeans 8.1 or below see the notes below about a bug and a provided workaround version).\n* Open up the NetBeans IDE on your computer\n* From the top menu, click on ```Tools``` and then from the menu that appears click ```Options```\n* When the **Options** window appears click on the ```Import``` button at the bottom left.\n* When the **Import** window appears click on the ```Browse``` button and select the downloaded zip archive that you downloaded in the first step.\n* Under the ```Select options to import:```, check the ```All``` check box and then click ```Ok``` and then ```Apply```.\n* You should then be prompted to restart the IDE, restart and enjoy your new auto-formatting skills ;)\n\n## Using NetBeans 8.1 (and lower)?\n\nThere is an issue in Netbeans versions 8.1 (and lower) in which the ``namespace`` new-line configuration does not work (a bug) of which has since been \nfixed in Netbeans 8.2. As a workaround however, [release v1.0.1](https://github.com/allebb/netbeans-psr-formatting/releases/tag/v1.0.1) uses a single blank line to split the ``namespace`` from the first line of which is recommended to use.\n\n## Preparing the source code for 'import'\n\nIn order to import the settings into NetBeans, compress the root directory of the ```src``` directory into a **zip file** of which can then be used to import into NetBeans as shown below in the installation guide.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallebb%2Fnetbeans-psr-formatting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallebb%2Fnetbeans-psr-formatting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallebb%2Fnetbeans-psr-formatting/lists"}