Русские видео

Сейчас в тренде

Иностранные видео




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



How to package and publish a magento 2 extension

► Fanpage:   / giaphugroupcom   ► Subscribe to my channel: https://www.youtube.com/giaphugroupco... ► Skype: cuongnq87 ► The website link: https://www.giaphugroup.com/magento-2... Hello, My name is Cuong, I'm a Magento Developer, Welcome back to my Magento 2 tutorial video series. #magento2tutorial #magento2training #magento2 Today, I am going to show everybody the best practice, How to package and publish an extension of Magento 2. Magento doesn't non-incentive developers to edit their core because it is difficult to upgrade to the next versions. When the developers want to create a new feature, they are introduced to create a custom module and override the core of Magento. To publish this extension to users, we must package and host it on the repository so all everyone can install it easily. You have a Magento 2 Extension, you want to publish it to everyone but you don't know how to publish it, today I will show you steps by step. There are two options, you can host your Magento 2 Extension and publish it to everyone. 1. Hosting on GitHub and Packagist 2. Hosting on a private repository In this practice, I select the hosting on Github and Packagist to show everyone. Okie, let's go. Let's complete this practice you need to follow steps by step: Step 1: Package your Magento 2 Extension. In the previous lesson, I created a custom module called PHPCuong_CurrencySymbolPosition, I built a new feature, that allows the administrator to change the currency symbol position from left to right or from right to left in the configuration and display it on the storefront. For now, I want to publish this module on the Github and everyone can install it easily by the composer. I will use the codes in this module to continue the lesson today. If you don't watch that lesson yet, you can watch it here http://bit.ly/2GIzQia Create the new file named composer.json app\code\PHPCuong\CurrencySymbolPosition } To explain some keys in this file: name: This is the repository of this module on your Github, the structure is Owner/RepositoryName php-cuong/magento2-currency-symbol-position is the path of this module on my Github description: This is the description content about this module. keywords: This saves the keywords related to this module require: The related package is required type: The type of this module, if it is a custom module, you type "magento2-module", if it is a custom theme, you type "magento2-theme", if it is a language package, you type "magento2-language" version: The release version of this module, it has the value like the setup_version in the module.xml file. license: The standard of license authors: The authors of this module. autoload: Define the file and directory to autoload classmap in this module. Create the new file named README.md in the path app\code\PHPCuong\CurrencySymbolPosition This file helps to introduce everyone to your Magento 2 Extension, you can write the content related to the description, installation guide, snapshot of this extension. Step 2: Publish your Magento 2 Extension to everyone Create a Github account in the link https://github.com, if you had an account there, you can skip this step. Create a new repository on your Github. Clone this repository to your localhost. You must install the Git on your localhost. I installed this software. Push the new codes to your Gitub repository. Create a new release version. Create a Packagist account in the link https://packagist.org/, if you have an account there, you can skip this step. Submit your package to Packagist. Press the Show API Token button to get your API Token, I skip this step. It is private Step 3: Test and See the results Try to install your Magento 2 Extension by composer via the installation guide on the README.md file Before installing it by the composer, I must delete this module in the path app/code/PHPCuong Because it will be duplicated I deleted it If you are required to type username and password, you can get it here https://marketplace.magento.com/custo... Create a new access key, if you don't have it yet Yeah, It works perfectly. Thanks for watching the guide. If you have any questions about this practice, please feel free to leave a comment below. Don't forget to like, comment, share my videos with your friends and subscribe to my channel for getting other lessons. Please do not hesitate to contact me, if you need me to join your Magento project. My rate is $25/hour in Magento 1 and $30/hour in Magento 2.

Comments