{"id":18779956,"url":"https://github.com/lhajman/php-snippets-for-vscode","last_synced_at":"2025-12-18T15:30:26.316Z","repository":{"id":110031310,"uuid":"419068082","full_name":"tal7aouy/php-snippets-for-vscode","owner":"tal7aouy","description":"Snippet pack for developers to speed up programming with PHP!","archived":false,"fork":false,"pushed_at":"2022-01-15T16:20:45.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T10:42:02.620Z","etag":null,"topics":["php","snippets","visual-studio-code"],"latest_commit_sha":null,"homepage":"","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/tal7aouy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-10-19T19:41:07.000Z","updated_at":"2022-09-07T18:54:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ff10503-64ae-441e-b120-4f60fbe347c3","html_url":"https://github.com/tal7aouy/php-snippets-for-vscode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal7aouy%2Fphp-snippets-for-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal7aouy%2Fphp-snippets-for-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal7aouy%2Fphp-snippets-for-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal7aouy%2Fphp-snippets-for-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tal7aouy","download_url":"https://codeload.github.com/tal7aouy/php-snippets-for-vscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239694838,"owners_count":19681940,"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":["php","snippets","visual-studio-code"],"created_at":"2024-11-07T20:24:03.438Z","updated_at":"2025-12-18T15:30:20.954Z","avatar_url":"https://github.com/tal7aouy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP snippets\n\n[![Version](https://vsmarketplacebadge.apphb.com/version/tal7aouy.php.svg)](https://marketplace.visualstudio.com/items?itemName=tal7aouy.php)\n[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/tal7aouy.php.svg)](https://marketplace.visualstudio.com/items?itemName=tal7aouy.php)\n[![Ratings](https://vsmarketplacebadge.apphb.com/rating/tal7aouy.php.svg)](https://marketplace.visualstudio.com/items?itemName=tal7aouy.php)\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/4f02368ebeb7be1490bb/maintainability)](https://codeclimate.com/github/php/php/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/4f02368ebeb7be1490bb/test_coverage)](https://codeclimate.com/github/php/php/test_coverage)\n\nThis extension contains code snippets for [Vs Code][code] editor (supports PHP).\n\n## Installation\n\n1. Open the extensions sidebar on Visual Studio Code\n1. Search for php snippets\n1. Click Install\n1. 🌟🌟🌟🌟🌟 Rate five-stars 😃\n\n## The languages supported (file extensions)\n\n- PHP (.php)\n\n## Snippets\n\nSnippets are optimized to be short and easy to remember.\n\nBelow is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.\n\n### Import and export\n\n|     Trigger | Content                                                                  |\n| ----------: | ------------------------------------------------------------------------ |\n|      `eco⇥` | `echo \"\";` statement.                                                    |\n|      `pri⇥` | `print($ex);` statement.                                                 |\n|     `dump⇥` | `var_dump($ex)` statement                                                |\n| `pre_dump⇥` | `echo '\u003cpre\u003e';\\nvardump($ex); \\necho '\u003c/pre\u003e';` formated var_dump output |\n|     `fore⇥` | `foreach(iterable_expr as $value) {...}`                                 |\n|    `forek⇥` | `foreach(iterable_expr as $key =\u003e $value) {...`                          |\n|     `prif⇥` | `private function name() {}`                                             |\n|    `prisf⇥` | `private static function name() {}`                                      |\n|     `prof⇥` | `protected function name() {}`                                           |\n|    `prosf⇥` | `protected static function name() {}`                                    |\n|     `pubf⇥` | `public function name() {}`                                              |\n|    `pubsf⇥` | `public static function name() {}`                                       |\n|       `fn⇥` | `fn($x) =\u003e $x * 10` Arrow function                                       |\n|      `inc⇥` | `include $file` include filename                                         |\n|     `inco⇥` | `include_one $file` include_one filename                                 |\n|      `req⇥` | `require $file` require filename                                         |\n|     `reqo⇥` | `require_once $file` require_once filename                               |\n|      `thr⇥` | `throw new $0` throw an exception                                        |\n|       `ns⇥` | `namespace App;` namespace `App` is an example                           |\n|       `mt⇥` | `match($ex) {...}` match expression                                      |\n|        `G⇥` | `$_GET['var']` $\\_GET Superglobal                                        |\n|        `P⇥` | `$_POST['var']` $\\_POST Superglobal                                      |\n|       `SE⇥` | `$_SERVER['var']` $\\_SERVER Superglobal                                  |\n|     `SESS⇥` | `$_SESSION['var']` $\\_SESSION Superglobal                                |\n|      `REQ⇥` | `$_REQUEST['var']` $\\_REQUEST Superglobal                                |\n|       `FI⇥` | `$_FILE['var']['name']` $\\_FILE Superglobal                              |\n\n## Issues \u0026 Suggestions\n\nFor any issues or suggestions, please use [GitHub issues](https://github.com/tal7aouy/php-snippets-for-vscode/issues).\n\n---\n\nHappy coding **_ PHP developer _**\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhajman%2Fphp-snippets-for-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flhajman%2Fphp-snippets-for-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhajman%2Fphp-snippets-for-vscode/lists"}