{"id":16915893,"url":"https://github.com/tysonandre/php-vim-syntax","last_synced_at":"2025-08-08T12:13:47.826Z","repository":{"id":48866285,"uuid":"262357873","full_name":"TysonAndre/php-vim-syntax","owner":"TysonAndre","description":"vim-syntax for php","archived":false,"fork":false,"pushed_at":"2023-09-11T14:00:24.000Z","size":109,"stargazers_count":17,"open_issues_count":9,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-11T16:23:53.203Z","etag":null,"topics":["php","syntax","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","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/TysonAndre.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-08T15:20:52.000Z","updated_at":"2024-07-31T12:07:41.000Z","dependencies_parsed_at":"2025-02-19T18:42:56.447Z","dependency_job_id":null,"html_url":"https://github.com/TysonAndre/php-vim-syntax","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/TysonAndre/php-vim-syntax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TysonAndre%2Fphp-vim-syntax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TysonAndre%2Fphp-vim-syntax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TysonAndre%2Fphp-vim-syntax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TysonAndre%2Fphp-vim-syntax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TysonAndre","download_url":"https://codeload.github.com/TysonAndre/php-vim-syntax/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TysonAndre%2Fphp-vim-syntax/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269417762,"owners_count":24413447,"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-08T02:00:09.200Z","response_time":72,"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":["php","syntax","vim"],"created_at":"2024-10-13T19:23:26.864Z","updated_at":"2025-08-08T12:13:47.789Z","avatar_url":"https://github.com/TysonAndre.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Vim Syntax\n==============\n\n[This repo](https://github.com/TysonAndre/php-vim-syntax) contains syntax highlighting files for vim at [syntax/php.vim](syntax/php.vim).\n\nInstallation\n------------\n\nAn older version of [syntax/php.vim](syntax/php.vim) may already be distributed with your editor.\nOlder versions may be missing highlighting for new syntax/keywords/functions/classes.\n\nIn vim, [syntax/php.vim](syntax/php.vim) can be placed in `~/.vim/syntax/php.vim` to use the newer version instead.\n(`~/vimfiles/syntax/php.vim` on Windows)\n\nIn neovim, [syntax/php.vim](syntax/php.vim) can be placed in `~/.config/nvim/syntax/php.vim` to use the newer version instead.\n(`~/AppData/Local/nvim/syntax/php.vim` on Windows)\n\nAlternately, php vim syntax files can be installed and updated using a plugin manager such as [vim-plug](https://github.com/junegunn/vim-plug), [vundle](https://github.com/VundleVim/Vundle.vim), or [pathogen.vim](https://github.com/tpope/vim-pathogen) by using this repo as a plugin ([TysonAndre/php-vim-syntax](https://github.com/TysonAndre/php-vim-syntax) from github).\n\nDocumentation\n-------------\n\nSee `:help ft-php-syntax` and [`syntax/php.vim`](syntax/php.vim)\n\n\n```\nNote: If you are using a colour terminal with dark background, you will\n      probably find the 'elflord' colorscheme is much better for PHP's syntax\n      than the default colourscheme, because elflord's colours will better\n      highlight the break-points (Statements) in your code.\n\nOptions:\n  Set to anything to enable:\n    php_sql_query           SQL syntax highlighting inside strings\n    php_htmlInStrings       HTML syntax highlighting inside strings\n\n                            By setting this to 2 instead, this will use a local copy of\n                            HTML syntax highlighting instead of the official\n                            HTML syntax highlighting, and properly highlight\n                            `\u003c?php $startTag = '\u003c?php';`.\n                            This may become the new default in the future.\n\n                            By setting this to 3, this will use the\n                            official installed top level html syntax highlighting rules.\n    php_baselib             highlighting baselib functions\n    php_asp_tags            highlighting ASP-style short tags\n    php_parent_error_close  highlighting parent error ] or )\n    php_parent_error_open   skipping an php end tag, if there exists\n                              an open ( or [ without a closing one\n    php_oldStyle            use old colorstyle\n    php_noShortTags         don't sync \u003c? ?\u003e as php\n  Set to a specific value:\n    php_folding = 1         fold classes and functions\n    php_folding = 2         fold all { } regions\n    php_sync_method = x  where x is an integer:\n                      -1  sync by search ( default )\n                      \u003e0  sync at least x lines backwards\n                      0   sync from start\n  Set to 0 to _disable_:      (Added by Peter Hodge On June 9, 2006)\n    php_special_functions = 0      highlight functions with abnormal behaviour\n    php_alt_comparisons = 0        comparison operators in an alternate colour\n    php_alt_assignByReference = 0  '= \u0026' in an alternate colour\n\n\nNote:\nSetting php_folding=1 will match a closing } by comparing the indent\nbefore the class or function keyword with the indent of a matching }.\nSetting php_folding=2 will match all of pairs of {,} ( see known\nbugs ii )\n\nKnown Bugs:\n - setting  php_parent_error_close  on  and  php_parent_error_open  off\n   has these two leaks:\n    i) A closing ) or ] inside a string match to the last open ( or [\n       before the string, when the the closing ) or ] is on the same line\n       where the string started. In this case a following ) or ] after\n       the string would be highlighted as an error, what is incorrect.\n   ii) Same problem if you are setting php_folding = 2 with a closing\n       } inside an string on the first line of this string.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftysonandre%2Fphp-vim-syntax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftysonandre%2Fphp-vim-syntax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftysonandre%2Fphp-vim-syntax/lists"}