A mostly complete set of snippets covering the entire PHP language. Based on https://github.com/antmat/XcodePHP, and converted to .codesnippet files using https://github.com/ppm/TextMacro2Snippet.
I have done some basic cleanup, but it could probably still use more.
- Xcode 4.x +
-
Download the .zip.
-
Copy all files from the CodeSnippets directory to ~/Library/Developer/Xcode/UserData/CodeSnippets
-
Close Xcode if it's open and restart it. It may take a while to open again and Xcode might look like it's hung, but give it a minute.
-
Open a PHP project or file in Xcode.
There are over 5,000 snippets related to editing .php files. Voila! PHP autocomplete with tokens and structure.
Names can be cleaned up, summaries added, and updates for the latest version of PHP can be based on the basic structure of these documents.
Enjoy!
More info: http://www.harikari.com/technology/better-native-php-syntax-support-in-xcode.html