{"id":19388861,"url":"https://github.com/james2doyle/phalconphp-completions","last_synced_at":"2025-07-28T00:06:33.328Z","repository":{"id":23427216,"uuid":"26790150","full_name":"james2doyle/phalconphp-completions","owner":"james2doyle","description":"A set of completions for the Phalcon PHP Framework made for Sublime Text 3","archived":false,"fork":false,"pushed_at":"2015-03-15T03:21:42.000Z","size":388,"stargazers_count":27,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-23T23:39:15.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/james2doyle.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":"2014-11-18T03:27:26.000Z","updated_at":"2024-05-27T15:53:38.000Z","dependencies_parsed_at":"2022-07-08T04:20:47.764Z","dependency_job_id":null,"html_url":"https://github.com/james2doyle/phalconphp-completions","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/james2doyle/phalconphp-completions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fphalconphp-completions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fphalconphp-completions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fphalconphp-completions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fphalconphp-completions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james2doyle","download_url":"https://codeload.github.com/james2doyle/phalconphp-completions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fphalconphp-completions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267442460,"owners_count":24087803,"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-07-27T02:00:11.917Z","response_time":82,"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":[],"created_at":"2024-11-10T10:13:54.192Z","updated_at":"2025-07-28T00:06:33.294Z","avatar_url":"https://github.com/james2doyle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"phalconphp-completions\n======================\n\nA ton of completions for [Phalcon PHP](http://phalconphp.com/en/) 1.3.\\*. There are **414** total right now. This is pretty much a copy-paste from my [sublime-node-snippets](https://github.com/james2doyle/sublime-node-snippets) repo.\n\n![testing example](https://raw.githubusercontent.com/james2doyle/phalconphp-completions/master/testing.gif)\n\n## Installing\n\nDrop this folder in your Sublime Text packages directory.\n\n#### Package Control\n\nJust look for `phalconphp-completions` on [Package Control](https://packagecontrol.io/packages/PhalconPHP%20Completions). It is called \"Node Completions\" on the site, but comes up as \"phalconphp-completions\".\n\n#### Manual\n\n* Open the Commands Palette (command+shift+p)\n* Package Control: Add Repository\n* Past in this repos URL\n* Press Enter\n* Open the palette again\n* press enter on \"phalconphp-completions\"\n* watch it install\n\n## Using\n\nPressing `\\` (backslash) or `:` will end the snippet lookup.\n\nYou will have better results if you pretend the slashes and colons aren't needed. So if you are looking for `Phalcon\\Text::increment`, you would type `phalcontextincrement` and you would see the results coming up.\n\n*See the GIF above!*\n\n## Building\n\nI went to each page of the node docs, and copied the functions. Then I wrote a converter to take each function and convert it to a snippet.\n\nFor Example, this line:\n\n```\nPhalcon\\Text::endsWith($str, $end, $ignoreCase)\n```\n\nIs going to get converted to:\n\n```\nPhalcon\\\\Text::endsWith(\\\\$${1:str}, \\\\$${2:end}, \\\\$${3:ignoreCase});${0}\n```\n\n## sources.txt\n\nThis file is cool. It is just a line-by-line output of the Phalcon docs functions. This is the file that is raked over to generate the snippets.\n\n## Running The Build\n\nJust run `node build.js` and it will rake the sources.txt file and then write the new snippet in the snippets folder.\n\nEverything before the first `(` will be used as the filename.\n\n## Adding New Snippets\n\nHere is how I quickly got all these snippets. First I went to the docs for the class, and I looked to see what the code examples were wrapped in.\n\nFor the all the docs pages, the methods and properties are show in a `p.method-signature` element. So to quickly get the list, I ran the following code:\n\n```javascript\nArray.prototype.slice.call(document.querySelectorAll(\".method-signature\"), 0).map(function(item){\n  return item.textContent.trim();\n}).join(\"\\n\");\n```\n\nThen copied the output, added the class in front (replacing the type info), and pasted it in the sources.txt file. Done!\n\n## Contributing\n\nJust add (or edit) a line in the source file. Then run `node build.js` to generate the new snippets.\n\n## License\n\n**The MIT License**\n\nCopyright (c) 2015 [James Doyle](http://twitter.com/james2doyle) james2doyle@gmail.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fphalconphp-completions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames2doyle%2Fphalconphp-completions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fphalconphp-completions/lists"}