Professional Documents
Culture Documents
How Is Magento 2
How Is Magento 2
If you will check the modern design or programming paradigm you will realize that NPM and RUBY have
great influence over dependency management and thats how to adapt the same in PHP - community developers
have introduced composer a dependency Management tool which comes in built with magento and it is in the
core of magento . Previously i was thinking about magento1.x.x as more like a platform instead of framework
but magento2.0 in my personal opinion is complete platform + framework .
If you will check you will find magento composer.json file loads tons of packages from symfony2 as well
which in my perspective is great and it opens the door to adapt more and more bundles .
Enforcement to write better code - PHP as a languages is good but i think what makes it great is the
frameworks like symfony2 - please have a look a complete talk of Fabien and the same thing is happening at
magento2.0 core it forces you to write test cases mainly PHP community dont write test cases which is really
bad (i dont think all of them but still ratio is quite large) if you are writing code on ruby or any other it forces
you to write the test cases from the very beginning and magento2.o does the same . You may check magento2.0
github for that.
So framework forces you the write the better code. So as I think magento2.0 having a great tech stack but that
can be opted in magento1.9.x as well i am more kind of happy because of brilliant design paradigms
nodeJs
KnowkoutJs
CSS pre-processor – LESS
JavaScript Task Runner – Grunt
M2 framework – Composition of Zend Framework
Bootstrap composer
ui_component
Dependency Injection
requireJs
Asynchronous Module Definition (AMD) & SHIM
PHP Standard Recommendations (PSR)
PHP 5.5 to 7 [Traits, ]
Redis – Key Value Cache Storage Engine
Varnish 4.0 HTTP accelerator
CSS3
HTML5
Xdebug – Debugger and Profiler Tool for PHP
Command Line Tool
Reflection
Interception
phpunit
symfony
Technical aspects of Magento 1.x that have been brought over into the Magento 2 platform. Specifically:
Design is handled completely differently. You will need to completely rework the design files from a
Magento 1.x site.
All extensions are different. None of the Magento 1.x extensions will work on the 2.0 platform without
being recoded from the ground up.
Magento 2 has three different modes: developer, default and production; Magento 1.9 does not have
these.
Magento 2 has full page caching built into the Community (free) version of the site. It wasn't available
on Magento 1.9, and even the full page caching in the Enterprise edition isn't quite as good as the new
Magento 2 full page cache. I've written about this quite a bit in the past, but what Magento 2 does is it
will pre-build your pages when in production mode, so your site doesn't have to get bogged down trying
to build big category pages with a ton of database calls.
Magento 2 has Varnish 4 support built in. Varnish is another technology that's amazing. We run it on
our site. Instead of using the file system for caching, it stores pages and other assets in RAM, and serves
them even more quickly.