PHPStorm Live template preferences for Magento 2 Projects

Overview

Magento 2 PHPStorm Preferences

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.

This project is intended to setup useful PHPStorm Templates for Magento 2 Projects.

Disclaimer

This project overrides the default file template PHP Class.php to add a specific header comments. We need to edit this file instead of creating a new one because automatic Namespace only works on this specific template. All other templates are custom ones with a naming prefix 2m in order to make them unique.

Installation

  1. Just download the .jar file and import it in your PHPStorm File -> Import Settings

    • https://github.com/staempfli/magento2-phpstorm-templates/releases/<version>/stmpfl_2m_templates.jar
  2. Set your personal configuration for comments on PHPStorm Preferences -> Editor -> File and Code Templates -> stmpfl_variables

    Comments settings

Available Templates

Usage

All file and live templates namings start with 2m except PHP Class.php. We need to use the default PHP Class.php because automatic Namespace only works on this specific template.

Contribute

You can contribute with new templates following this manual:

Demo

Video Demo

Comments
  • Correct path for linking template files

    Correct path for linking template files

    Copying file to ~/Library/Preferences//templates/ did not work. PHPStorm only recognized the new templateSet after directly copying it to the settingsRepository.

    opened by mashb1t 4
  • 2magento DOESN'T SHOW ANY SUGGESTIONS

    2magento DOESN'T SHOW ANY SUGGESTIONS

    Hi,

    I imported file in right way i can also see this in live templates, but still it doesn't give me any suggestion...... I can also see all Templates in IDE Setting -> Live Templates.....

    opened by Partabsaifzakir 0
  • seem it's not working on PhpStorm 2018.3

    seem it's not working on PhpStorm 2018.3

    Hi

    I tries install this plugin and get error php-code

    https://github.com/staempfli/magento2-phpstorm-templates/releases/download/1.7.4/stmpfl_2m_templates_v_2018.jar

    opened by ngocanh68 3
  • model

    model

    a model resource model and collection support will be plus , it will be perfect if we can create all of them as file template once plus one by one as live template

    opened by eyeoftigers 0
  • 2magento doesn't show any suggestions

    2magento doesn't show any suggestions

    I have imported the .jar settings, got no errors. In Editor > File and Code Templates I can see some added features, but there are no added features in Editor > Live Templates.

    I'm using PhpStorm version 2018.2.1 (currently the newest)

    help wanted 
    opened by MSidabras 7
Releases(1.7.4)
Owner
Stämpfli AG
Web solutions for associations, small businesses and more.
Stämpfli AG
Rah privileges - Configure Textpattern CMS' user-group privileges through Preferences panel

rah_privileges Packagist | Donate Configure admin-side user-group permissions from Textpattern CMS’ preferences panel. Install Using Composer: $ compo

Jukka Svahn 4 Apr 16, 2022
Preferences are configuration variables that are user-managed for which we cannot rely upon container parameters or environment variables.

Preferences Preferences are configuration variables that are meant to be user managed for which we cannot rely upon container parameters or environmen

Makina Corpus 1 Feb 7, 2022
Magento 2 Debug Helper Module for easy debugging with Xdebug and PHPStorm or any other IDE

Magento 2 Debug Helper Information and Usage Magento 2 Debug Helper Module usage with PHPStorm and Xdebug Installation To install the Magento 2 Debug

Dmitry Shkoliar 13 May 24, 2022
PHPStorm Magento 2 File Templates

phpstorm-m2-filetemplates PHPStorm Magento 2 File Templates Useful file templates for working with Magento 2. To install, place the files directly in

Laura Folco 39 Dec 21, 2022
PHPStorm Plugin for Magento 2

PhpStorm Magento 2 Plugin Installation Go to Settings > Preferences in the PhpStorm IDE Navigate to Plugins Click the Browse repositories... button an

Magento 395 Dec 21, 2022
🧩 Laravel Query Builder integration for PhpStorm

Laravel Query Laravel + DataGrip = ♥️ This plugin provides database integration for Laravel query builder. Features Schemas, tables, views and columns

Ernestas Kvedaras 41 Dec 14, 2022
Minimalistic Light colour scheme for PhpStorm

A minimalistic light colour scheme for PhpStorm If you need convincing of a light colour scheme, I'd like to direct you to a post on the topic. Colour

Brent Roose 269 Dec 24, 2022
PaaS template based on production template using platform.sh

Shopware for Platform.sh This template builds Shopware on Platform.sh using Composer. To get started on Platform.sh, please visit https://docs.platfor

Shopware 9 Oct 12, 2022
PDF API. JSON to PDF. PDF Template Management, Visual HTML Template Editor and API to render PDFS by json data

PDF Template Management, Visual HTML Template Editor and API to render PDFS by json data PDF ENGINE VERSION: development: This is a prerelease version

Ajous Solutions 2 Dec 30, 2022
A tool that allows to quickly export data from Magento 1 and Magento 2 store and import it back into Magento 2

Simple Import / Export tool A tool that allows to quickly export data from Magento 1 and Magento 2 store and import it back into Magento 2. Table data

EcomDev B.V. 51 Dec 5, 2022
Live chat with several people.

chat What can you do on this application? you can create an account you can talk live with several people you can edit any information on your account

Narcis Lazar 8 Nov 10, 2022
Auto RELOAD dan "live server" untuk PHP file

PHP BrowserSync Auto Reload your Browser and PHP file ini adalah auto reload php file atau browser, jika ada perubahan di file php atau di file js dan

Reza Ola 2 Jan 14, 2022
⚽️ 🏀 🏒 Live scores for Sports!

Live Scores is a CLI application made with Laravel Zero that shows the current sports live scores. Installation You can install this application via c

Francisco Madeira 45 Jun 4, 2022
Tool based on deployer.org to perform zero downtime deployments of Magento 2 projects

Magento 2 Deployer Plus Reliable fully-automated deployments tool for Magento 2. Zero downtime deployments on Magento versions >= 2.2 Automating your

Juan Alonso 194 Dec 27, 2022
HTML5 Twitter Bootstrap 3.1 Magento Boilerplate Template

Magento Boilerplate A HTML5 Twitter Bootstrap 3.1 Magento 1.8 Boilerplate Template Read the blog post or checkout the demo for more information. Insta

null 531 Dec 8, 2022
H&O Magento 2 Advanced Template Hints module

H&O Magento 2 Advanced Template Hints module Ho_Templatehints extends the default Magento template hints. Easily accessible with muscle memory ?ath=1.

Reach Digital 245 Dec 22, 2022
This Magento 2 extension integrates EasyTranslate into Magento 2.

EasyTranslate Magento 2 Connector This Magento 2 extension integrates EasyTranslate into Magento 2. Mind that you need to have an account with EasyTra

Easytranslate ApS 0 Oct 7, 2022