php abstract class without strict type & namespace
html
php-abstract-class-no-strict
php abstract class without strict type
html
php-abstract-class-no-namespace
php abstract class without namespace
html
php-abstract-class-extends
php abstract class with extends
html, php
php-abstract-class-implements
php abstract class with implements
html, php
php-final-class
php final class
html, php
php-final-class-no
php final class without strict type & namespace
html
php-final-class-no-strict
php final class without strict type
html
php-final-class-no-namespace
php final class without namespace
html
php-final-class-extends
php final class with extends
html, php
php-final-class-implements
php final class with implements
html, php
php-interface
php interface
html, php
php-interface-no
php interface without strict type & namespace
html
php-interface-no-strict
php interface without strict type
html
php-interface-no-namespace
php interface without namespace
html
php-interface-extends
php interface with extends
html, php
php-trait
php trait
html, php
Error
Snippet
Output
Language
thr
throw new \Exception()
php
try-catch-block
try{} catch (){}
php
try-catch-message
try{} catch (Exception $e){ $e->getMessage() }
php
try-catch-finally
try{} catch (){} finally {}
php
catch-block
catch (){}
php
finally-block
finally {}
php
Special Thanks
This extension is forked from h4kst3r/php-awesome-snippets. Because its author seems to have not maintained it for a long time. So I made this fork to make the extension suitable for new version of PHP. I reorganized the snippets and added more standardized writing. Great thanks to h4kst3r's excellent work.
The new version number starts from 2.x.
This work is inspired by PHPstorm (PHP Live Templates) and other works available on VScode marketplace like PHP Snippets VS Code or PHP Snippet Pack.