???? ??? ????? ??? ? ????? Composer ????? ??? ??? ? ????. Composer.json ???? ????? ???? ?? ????? ???? ? ??? ??? ?????. ?? ???, ?? ??? ? ??? ?? ???? ?? ??? ??? ? ????. ????? ???? 'Composer Run-Script'??? ???? ?? ??? ??? ? ????. ???? ??? ????? ???? ??? ?????? Alexander Cogneau? Composer? ??? ?? ??? ??
, ?? Composer? ?? ???? ??? ? ?? ?? ?? ??? ?????? ????? ?? ?? ????. ??? ?? ???? ? ????? ???? ?? ?? ??? ??? ???? ??? ?? ??????.
???? ?? ???? ??? ?? ? ?? ?? ?? ??? ???? ? ??? ?? ?? ??? ???? ??? ? ????. ??
? post
/> ?? ?? ??? ??? ??/????/?? ? ? ??? ??? ??? ??? ?? ????? ??? ? ????.
???? ??? ?? ?? ???, ?? ??? ????? ???? ??? ?? ?? ? ???? ?????. ??? ???? ?? ??? Root Package Composer.json ????.
<span>{
</span> <span>"name": "MyProject",
</span> <span>"description": "An example to demonstrate the use of Composer scripts",
</span> <span>"version": "1.0.0",
</span> <span>"require": {
</span> <span>"php": ">=5.3",
</span> <span>"ext-xsl": "*",
</span> <span>"ext-imap": "*",
</span> <span>"ext-gd": "*"
</span> <span>},
</span>
<span>"autoload": {
</span> <span>"psr-0": {
</span> <span>"MyProject": "src/"
</span> <span>}
</span> <span>},
</span>
<span>"scripts": {
</span> <span>"pre-install-cmd": "MyProject\Installer::preInstall",
</span> <span>"post-install-cmd": [
</span> <span>"MyProject\Installer::postInstall"
</span> <span>],
</span> <span>"post-package-install": [
</span> <span>"MyProject\Installer::postPackageInstall",
</span> <span>"phpunit -c /tests",
</span> <span>"./bin/install.sh"
</span> <span>]
</span> <span>}
</span><span>}</span>
?? ?? CMD, ?? ? CMD ? ??? ? ?? ???? ?? ????? ??????. ?????, ?? PHP ??? ?? ? ?? ??? ??? ?? ? ? ????. ??? ? ?? ???? ?? ?? ?? ??? ? ??? ?? ?? ????? ?????.
?? ????? ??? ????.
<span><span><?php
</span></span><span><span>namespace MyProject;
</span></span><span><span>use ComposerScriptEvent;
</span></span><span>
</span><span><span>class Installer
</span></span><span><span>{
</span></span><span> <span>public static function preInstall(Event $event) {
</span></span><span> <span>// provides access to the current ComposerIOConsoleIO
</span></span><span> <span>// stream for terminal input/output
</span></span><span> <span>$io = $event->getIO();
</span></span><span> <span>if ($io->askConfirmation("Are you sure you want to proceed? ", false)) {
</span></span><span> <span>// ok, continue on to composer install
</span></span><span> <span>return true;
</span></span><span> <span>}
</span></span><span> <span>// exit composer and terminate installation process
</span></span><span> <span>exit;
</span></span><span> <span>}
</span></span><span>
</span><span> <span>public static function postInstall(Event $event) {
</span></span><span> <span>// provides access to the current Composer instance
</span></span><span> <span>$composer = $event->getComposer();
</span></span><span> <span>// run any post install tasks here
</span></span><span> <span>}
</span></span><span>
</span><span> <span>public static function postPackageInstall(Event $event) {
</span></span><span> <span>$installedPackage = $event->getComposer()->getPackage();
</span></span><span> <span>// any tasks to run after the package is installed?
</span></span><span> <span>}
</span></span><span><span>}</span></span>
??? ? ???? ???? Composer? ?? ??? ???? ComposerScriptevent ??? ? ??? ?? ? ?? (? ???) ??? ?????. ???
??? ?? ??? ??? ?? ?? getters? ??? ??????.
??? ????? PHP ??? ??? ????? ?????. composer.json ??? ???? ??? 'Composer Run-Script'??? ???? ?? ??? ??? ? ????. ????? ???? ???, ?? ? ??? ?? ??? ??? ? ? ????. ?? ??? ?? PHP ??? ???? ? ??? ? ????. ?, ??? ????? ????? ? ??? ? ????. ???? ???? Composer.json ???? ????? ?? ? ? ????. ?? ??, PhPUnit? ???? '???'?? ????? ?? ? ? ????. ?? ?? 'Composer Run-Script Test'??? ???? ?? ??? ???? ??? ? ????.
??? ??? ????? ???? ??? ?????? ?, ??? ????? ??? ? ????. ??? ?? PHP ??. php ??? ???? composer.json ???? ????? ?? ? ? ????. PHP ???? ??? ??? ??? ? ????. 'Composer Run-Script'??? ???? ????? ???? PHP ??? ?????.
????? ????? ?? ? ? ??????? ??? ????? ???? ?? ????? ??? ? ? ?????
?, ??? ????? ???? ?? ????? ??? ? ? ????. . Composer.json ???? ????? ???? ??? ??, ?? ??? ? ?? ??? ?? ??? ??? ? ? ????. ?? ??? ????? 'Composer Run-Script'??? ???? ?? ??? ??? ? ????. ???? ?? ??? ????? ???? ?? ? ????. ?? ????? ? ??????. ??? ? ??? ????? ??? ???? ??? ??? ?? ? ????. ??? ????? ?? ?? ?? ???? ??? ???? ????? ?? ??????? ????? ????.
?? ??? ?? ??? ????? ??? ? ????? ?? ??? ?? ??? ? ????. ?? ??, ??? ????? ???? GULP ??? ????? PHPUnit ??? ???? ??? ? ????. ?? ?? ?? ??? ??? ????? ??? ????? ???? ???? ??? ?? ? ????. ???? ??? ???? ??? ?? ? ?? ??? ? ????? ?? ???? ????. ?? ??? ??? ????? ?? ????. ????? ???? ?? ????? ??? ???? ??? ???? ????? ?? ? ?? ??? ?????.
? ??? PHP ??? | ??? ????? ???? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











TOSECURELYHANDLEAUSTENCENDACTIONANDACTERIZINGINPHP, FORCUCTSESTEPS : 1. ALWAYSHASHPASSWORTHPASSWORD_HASH () ? VERVERIFYUSINGPANSWORD_VERIFY (), usePREPAREDSTATEMENTSTOPREVENTSQLINGERGED, andSTOREUSERSESSEATAIN $ _SESSIONSAFTERLOGIN.2.impleplempletrole ?? ACCESSC

PHP?? ?? ???? ???? ????? ??? ?? ??? ???? ?? ??? ??? ??? ???? ????. 1. finfo_file ()? ???? ?? ?? ??? ???? ???/jpeg? ?? ?? ?? ? ?????. 2. uniqid ()? ???? ??? ?? ??? ???? ? Web ?? ????? ??????. 3. php.ini ? html ??? ?? ?? ??? ???? ???? ??? 0755? ?????. 4. Clamav? ???? ???? ???? ??? ??????. ??? ??? ?? ???? ????? ???? ?? ??? ????? ???? ??? ? ??? ?????.

PHP?? ==? ==? ?? ???? ?? ??? ??????. == ?? ??? ?? ?? ?????. ?? ??, 5 == "5"? true? ????, ?? ??? ???? ?? ?? ??? ????? ????? (? : 5 === "5"? false? ?????. ?? ?????? ===? ? ???? ?? ?????? == ?? ??? ??? ???? ?????.

PHP?? ?? ??? ??? ???? ??? ??? ????. 1. ?? ??? ?? ? ?? ??? ??? ???? ???? ??? ? ????. ??? ??? ???? ????? ????? ???? ????. 2. ?? ?? ?? - ??, ??? ???? ?? ??? ?????. 3. ?? ???? ??? ??? ???? ??? ??? ?????. 4. Division? / ??? ???? 0?? ??? ?? ????? ??? ?? ??? ?? ? ? ????. 5. ???? ??? ???? ?? ?? ? ?? ??? ???? ? ??? ? ???, ??? ?? ? ? ??? ??? ???? ?????. ? ???? ???? ???? ??? ??? ??? ???? ?? ??? ? ??????? ????.

?, PHP? ?? ?? ?? ?????? ?? MongoDB ? Redis? ?? NOSQL ??????? ?? ??? ? ????. ?? MongoDBPHP ???? (PECL ?? Composer? ?? ??)? ???? ????? ????? ??? ?????? ? ???? ????? ??, ??, ?? ? ?? ??? ?????. ??, Predis ????? ?? Phpredis ??? ???? Redis? ???? ?? ? ?? ? ??? ???? ??? ????? Phpredis? ???? ?? Predis? ?? ??? ?????. ? ? ?? ??? ???? ? ????? ????.

tostaycurrentwithphpdevelopments ? bestpractices, followkeynewssources lifephp.netandphpweekly, adgytwithcommunitiesonforumsandconferences, readlingupdated andgrad indewfeatures, andreadorcontributetoopensourceproceprosts.first

phpbecamepupularforwebdevelopmentduetoiteofleneflening, whithhtml, wididepreadhostingsupport, andalargeecosystemincludingframeworkslikelaravelandcmsplatformsformslikewordpress.itexcelsinhandlingformsubmissions, managingussess, interptisussivers, ?? ???

TOSETTHERIGHTTIMEZONEINPHP, usedate_default_timezone_set () functionattStartOfyourscriptwitHavalidInlifiersuchas'America/new_york'.1.edate_default_timezone_set () beforeanydate/timeFunctions.2
