Using external code
Package repositories, PSR standards, and social coding provide us with lots of high-quality reusable libraries and other components with free licenses. We can just install any external component in project instead of reengineering them from scratch. It improves development performance and makes for higher-quality code.
Create a new application by using the Composer package manager as described in the official guide at http://www.yiiframework.com/doc-2.0/guide-start-installation.html.
How to do it…
In this recipe we will try to attach some libraries manually and via Composer.
Installing a library via Composer
When you use NoSQL or other databases without autoincrement primary keys, you must generate unique identifiers ...