Skip to content

Instantly share code, notes, and snippets.

@aleduca
Created January 15, 2023 17:41
Show Gist options
  • Save aleduca/3a8c94d9dabab5f8337b9ab835cef02a to your computer and use it in GitHub Desktop.
Save aleduca/3a8c94d9dabab5f8337b9ab835cef02a to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
declare(strict_types=1);
namespace App${TM_FILEPATH/(?:.*app)|(\/)([^\/]+)(?=\/)|(?:\/[^\/]+\.php$)/(?1:\\$^N:$^N)/g};
class ${1:${TM_FILENAME/(.+)\..+|.*/$1/:name}}
{
}
]]></content>
<tabTrigger>clp</tabTrigger>
<description>make-class-with-name</description>
<scope>embedding.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment