Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/vendor/yiisoft/yii2-composer/ |
Upload File : |
<p align="center"> <a href="https://getcomposer.org/" target="_blank" rel="external"> <img src="https://getcomposer.org/img/logo-composer-transparent3.png" height="178px"> </a> <h1 align="center">Yii 2 Composer Installer</h1> <br> </p> This is the composer installer for [Yii framework 2.0](http://www.yiiframework.com) extensions. It implements a new composer package type named `yii2-extension`, which should be used by all Yii 2 extensions if they are distributed as composer packages. For license information check the [LICENSE](LICENSE.md)-file. [](https://packagist.org/packages/yiisoft/yii2-composer) [](https://packagist.org/packages/yiisoft/yii2-composer) [](https://travis-ci.com/yiisoft/yii2-composer) Usage ----- The Yii 2 Composer Installer is automatically installed with when installing the framework via Composer. To use Yii 2 composer installer, simply set the package `type` to be `yii2-extension` in your `composer.json`, like the following: ```json { "type": "yii2-extension", "require": { "yiisoft/yii2": "~2.0.0" }, ... } ``` You may specify a bootstrapping class in the `extra` section. The `init()` method of the class will be executed each time the Yii 2 application is responding to a request. For example, ```json { "type": "yii2-extension", ..., "extra": { "bootstrap": "yii\\jui\\Extension" } } ``` The `Installer` class also implements a static method `postCreateProject()` that can be called after a Yii 2 project is created, through the `post-create-project-cmd` composer script. A similar method exists for running tasks after each `composer install` call, which is `postInstall()`. These methods allow to run other `Installer` class methods like `setPermission()` or `generateCookieValidationKey()`, depending on the corresponding parameters set in the `extra` section of the `composer.json` file. For example, ```json { "name": "yiisoft/yii2-app-basic", "type": "project", ... "scripts": { "post-create-project-cmd": [ "yii\\composer\\Installer::postCreateProject" ], "post-install-cmd": [ "yii\\composer\\Installer::postInstall" ] }, "extra": { "yii\\composer\\Installer::postCreateProject": { "setPermission": [ { "runtime": "0777", "web/assets": "0777", "yii": "0755" } ] }, "yii\\composer\\Installer::postInstall": { "copyFiles": [ { "config/templates/console-local.php": "config/console-local.php", "config/templates/web-local.php": "config/web-local.php", "config/templates/db-local.php": "config/db-local.php", "config/templates/cache.json": ["runtime/cache.json", true] } ], "generateCookieValidationKey": [ "config/web-local.php" ] } } } ```