12 Amazing Features of Magento 2
1 Backup / Rollback System in Magento 2
2 Upgrading in Magento 2
3 Maintenance Mode and Restricting IP Addresses
4 Three Modes in Magento 2 Developer, Production and Default
5 Module Installation and Management
6 PSR Compliance
7 Performance
8 Magento 2 Admin Backend UI
9 Theme Developer's Delight : Blank Theme
10 Migration Tool
11 Scalability
12 Last but not the least: The Magento 2 Testing Framework
For more Updates on Magento 2, visit us @
http://schogini.biz/magento/
2. 1. Backup / Rollback System
Magento 2 has a very powerful and elegant backup/rollback
system
Its command line tool has some handy commands.These
commands can be added to cron system to take automated
backups
Rollback is another interesting command, which will place
the site in the maintenance mode, restores the DB, files and
media, and then re-enables the site
3. Some of the Handy commands…
setup:backup
Takes backup of Magento Application code base, media and
database
setup:rollback
Rolls back Magento Application codebase, media and database
info:backups:list
Prints list of available backup files
4. 2. Upgrading Core Files and Modules
Introduction of the PHP based dependency management
using "composer" makes life easy
Composer ensures that all components maintain their
expected versions
With a single command, "composer update" all core and third
party modules get updated
5. 3. Maintenance Mode and Restricting IP
Addresses
The maintenance flag is relocated inside the var folder in Magento 2. In
addition to it, we can add the IPs to be allowed in a file
var/.maintenance.ip
Manual creation of the flag file and the IP file is not needed,
we can use the bin/magento command line tool commands like these
maintenance:allow-ips -- Sets maintenance mode exempt Ips
maintenance:disable -- Disables maintenance mode
maintenance:enable -- Enables maintenance mode
maintenance:status -- Displays maintenance mode status
6. 4.Three Modes in Magento 2
A Magento 2.0 shop can be put in three modes
1. Developer Mode
2. Production Mode
3. Default Mode
Developer Mode:
This mode is useful during the development phase where static
file creation is done to save speed of iteration, uncaught
exceptions are shown on the browser, error handler
exceptions are not logged and very detailed error reporting in
var/report.
7. Three Modes in Magento 2 (contd.)
Production Mode:
Live shop should be in this mode where, maximum performance
and security are assured. In this mode, exceptions are not
shown to the user but only saved to the logs. Static files are not
created for any changes made, thus the docroot folder can be in
read-only mode!
Default Mode:
This mode is not needed! Its neither good for production nor
development.
8. 5. Module Installation and Management
Installing new modules is much easier in Magento 2. Adding the
modules version and repository details to the composer.json and
running the install command will save the module. Once this is done
we can run the bin/magento CLI tool to install the module. Some
useful commands are listed below.
module:disable -- Disables specified modules
module:enable -- Enables specified modules
module:status -- Displays status of modules
module:uninstall -- Uninstalls modules installed by composer
9. 6. PSR Compliance
PSR stands for PHP Standard Recommendation. In this, currently there are
three standards.
PSR-0 is for compliance in the auto-loader interoperability.
PSR-1 for a basic coding standard like :
Only use the <?php and <?= tags. Only use UTF-8 without BOM for PHP
code.
Separate side-effects (generate output, access a database etc.) and
declarations.
Enforce PSR-0.
Class names must be defined in StudlyCaps.
Class constants must be defined in upper case with underscore separators.
Method names must be defined in camelCase.
PSR-2 is for the logger system viz: debug, info, notice, warning, error,
critical, alert and emergency.
10. 7. Performance
Improved indexers, Magento 2 performance toolkit,Varnish
caching integration, and Full page caching are all aimed to
provide better performance and scalability to the shop
12. 9. Theme Developer's Delight: Blank
Theme
Clean slate! A blank theme without no customization lets
developers start creating new themes by adding the required
features one at a time.
This not only enhances the speed of theme development, but
also reduces the learning curve.We should see more and
more theme developers doing Magento 2 themes.
13. 10. Migration Tool
Magento 2 comes with a MigrationTool that helps us to
migrate from Magento 1.9.x.x to Magento 2 relatively easy.
Using this tool, one can migrate EAV, Attributes, Logs, Shop
Settings, Customers, Orders, Catalogs and Categories.
Basically, Magento 2 makes migration of data and settings
easy.
14. 11. Scalability
Modular architecture of Magento 2 lets us breakdown the
subsystems and host on different servers optimized for
specific usage/load types.
Catalog, Shipping, Sales, Checkout and Payment sub-
systems can be separately optimized for increased
performance, scalability and security.
15. 12. Testing Framework
Last but not the least, Magento 2 provides its own testing
framework.
There are sections in the testing framework for integration,
units, static environments, functional areas, and
performance.
This can reduce the bug fix iterations while making testing
relatively easier.
16. AboutThe Author
Gayatri S Ajith, one of the first Magento Developer Plus
Certified developers with 15+ years of PHP experience.
17. Conclusion
All these features makes
Magento 2.0 a powerful and
unrivaled ecommerce platform
which delivers rich, out-of-the-
box functionality to your online
shop.
For more Magento 2
Updates, Visit us @
http://schogini.biz/magento/