This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//<?php | |
// | |
//Yes you can run Composer with a little PHP wrapper. All of the Composer source code is available in the Phar file, so it can be extracted and then you can run it after setting up an InputInterface to replace Composer expecting the commands to be passed in via the command line. | |
// | |
//If you setup your directory structure like this: | |
// | |
//./project | |
//./project/composer.json | |
//./project/composer.lock | |
//./project/webroot/composerExtractor.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function loggerCoroutine(){ | |
// set something up | |
$fileHandle = fopen($fileName, 'a'); | |
while($continue == true){ | |
//Do something | |
fwrite($fileHandle, yield . "\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Given the following table: | |
// | |
// -------------- | |
// | id | event | | |
// -------------- | |
// | 00 | start | | |
// | 01 | data | | |
// | 02 | end | | |
// | 03 | data | | |
// | 04 | data | |
NewerOlder