Skip to main content

Posts

Showing posts with the label Yii

How to use composer with PHP, Yii framework

  Introduction: Some PHP components is installed using composer, like every other dependency framework. You can reference the page:   https://packagist.org/  . This page contains a lot of useful PHP repositories, libraries. The benefits of using composer are: When we create a library which depends on another libraries(of other developer), we of course do not want to copy all these libraries into our project(do not do that, they are not yours). We might want our project(library) to be condense, simple to use and always up-to-date. --> Therefore, we will create a file, which presents that our library is depending on some other guys... Our library users might want a small command to download everything they need, including our library. One command and everything is setup. User want the latest version of our library If you are a developer, how to install libaries using composer? First, lets imagine that your project need some external libraries(this is the fact, not