{"id":19517632,"url":"https://github.com/laravel-china/phpstorm-livetemplates","last_synced_at":"2026-03-01T09:33:04.604Z","repository":{"id":28154405,"uuid":"31654849","full_name":"laravel-china/PhpStorm-LiveTemplates","owner":"laravel-china","description":"Collections of PhpStorm-LiveTemplates","archived":false,"fork":false,"pushed_at":"2015-03-07T12:45:05.000Z","size":144,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-11-20T09:04:33.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laravel-china.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-04T12:01:39.000Z","updated_at":"2021-03-29T06:22:57.000Z","dependencies_parsed_at":"2022-09-04T12:11:53.280Z","dependency_job_id":null,"html_url":"https://github.com/laravel-china/PhpStorm-LiveTemplates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laravel-china/PhpStorm-LiveTemplates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-china%2FPhpStorm-LiveTemplates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-china%2FPhpStorm-LiveTemplates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-china%2FPhpStorm-LiveTemplates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-china%2FPhpStorm-LiveTemplates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laravel-china","download_url":"https://codeload.github.com/laravel-china/PhpStorm-LiveTemplates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-china%2FPhpStorm-LiveTemplates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29965630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11T00:05:29.298Z","updated_at":"2026-03-01T09:33:04.575Z","avatar_url":"https://github.com/laravel-china.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhpStorm-LiveTemplates\nCollections of PhpStorm-LiveTemplates\n\n## Installation\n\nFirst, find your configuration folder.\n\n\tWindows: \u003cyour home directory\u003e\\.WebIde\u003cversion\u003e\\config\n\tLinux: ~\\.WebIde\u003cversion\u003e\\config\n\tMacOS: ~/Library/Preferences/WebIde\u003cversion\u003e\n\nOn my MacOS, it would be `~/Library/Preferences/WebIde80` so you have to adjust commands to your platform. There is a `templates/` directory. It contains XML files with Live Templates.\n\nCreate a git repository in the `templates/` dir and pull the templates\n```bash\n$ cd ~/Library/Preferences/WebIde80/templates\n$ git init\n$ git remote add origin git@github.com:laravel-china/PhpStorm-LiveTemplates.git\n$ git pull origin master\n```\nIf this wouldn't work, you should just backup your templates, clone the repo and merge them manually.\n\n##Forms\n\n**fo** Form open tag\n```php\n{!! Form::open() !!}\n```\n\n**fc** Form close tag\n```php\n{!! Form::close() !!}\n```\n\n**textfield** Text form field\n```php\n\u003c!--- $VALUE$ Field ---\u003e\n\u003cdiv class=\"form-group\"\u003e\n    {!! Form::label('$NAME$', '$VALUE$:') !!}\n    {!! Form::text('$NAME$', null, ['class' =\u003e 'form-control']) !!}\n\u003c/div\u003e\n```\n\n**emailfield** Email form field\n```php\n\u003c!--- $VALUE$ Field ---\u003e\n\u003cdiv class=\"form-group\"\u003e\n    {!! Form::label('$NAME$', '$VALUE$:') !!}\n    {!! Form::email('$NAME$', null, ['class' =\u003e 'form-control']) !!}\n\u003c/div\u003e\n```\n\n**passwordfield** Password form field\n```php\n\u003c!--- $VALUE$ Field ---\u003e\n\u003cdiv class=\"form-group\"\u003e\n    {!! Form::label('$NAME$', '$VALUE$:') !!}\n    {!! Form::password('$NAME$', ['class' =\u003e 'form-control']) !!}\n\u003c/div\u003e\n```\n\n**textareafield** Text area form field\n```php\n\u003c!--- $VALUE$ Field ---\u003e\n\u003cdiv class=\"form-group\"\u003e\n    {!! Form::label('$NAME$', '$VALUE$:') !!}\n    {!! Form::textarea('$NAME$', null, ['class' =\u003e 'form-control']) !!}\n\u003c/div\u003e\n```\n\n**hiddenfield** Hidden form field\n```php\n{!! Form::hidden('$NAME$', $VALUE$) !!}\n```\n\n**submitfield** Submit form field\n```php\n\u003c!--- $VALUE$ Field ---\u003e\n\u003cdiv class=\"form-group\"\u003e\n    {!! Form::submit('$NAME$', ['class' =\u003e 'btn btn-primary']) !!}\n\u003c/div\u003e\n```\n\n**req** Require field (add in the attribute array of any form field type to make field required.\n```php\n'required' =\u003e 'required'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-china%2Fphpstorm-livetemplates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaravel-china%2Fphpstorm-livetemplates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-china%2Fphpstorm-livetemplates/lists"}