├── data └── .gitkeep ├── files └── .gitkeep ├── uploader-js ├── config.sample.json ├── package.json ├── upload.js └── package-lock.json ├── download.php ├── upload.php ├── .gitignore ├── composer.json ├── config.sample.php ├── readme.md ├── uploader └── uploader.php ├── downloader └── downloader.php └── composer.lock /data/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /uploader-js/config.sample.json: -------------------------------------------------------------------------------- 1 | { 2 | "username": "", 3 | "password": "" 4 | } -------------------------------------------------------------------------------- /uploader-js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "instagram-private-api": "^1.39.2" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /download.php: -------------------------------------------------------------------------------- 1 | update(); 8 | -------------------------------------------------------------------------------- /upload.php: -------------------------------------------------------------------------------- 1 | update(); 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # config 2 | config.php 3 | 4 | # data 5 | data/* 6 | !data/.gitkeep 7 | 8 | # files 9 | files/* 10 | !files/.gitkeep 11 | 12 | # composer 13 | vendor 14 | 15 | # node 16 | uploader-js/node_modules 17 | uploader-js/config.json 18 | 19 | # misc 20 | .DS_Store -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "jeroen-g/flickr": "^1.0", 4 | "mgp25/instagram-php": "dev-master" 5 | }, 6 | "autoload": { 7 | "psr-4": { 8 | "Api\\Downloader\\": "downloader/", 9 | "Api\\Uploader\\": "uploader/" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /config.sample.php: -------------------------------------------------------------------------------- 1 | [ 6 | "user_id" => "", 7 | "key" => "", 8 | "secret" => "", 9 | "oauth_token" => "", 10 | "oauth_token_secret" => "", 11 | ], 12 | "files" => [ 13 | "path" => "files/" 14 | ], 15 | "instagram" => [ 16 | "username" => "", 17 | "password" => "" 18 | ], 19 | "debug" => true 20 | ]; 21 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Instagram Uploader 2 | 3 | Automatically upload images from a flickr account to Instagram 4 | 5 | This app makes use of the following libraries: 6 | 7 | * https://github.com/mgp25/Instagram-API 8 | * https://github.com/Jeroen-G/Flickr 9 | 10 | ## Setup 11 | 12 | Check this project out onto your computer, a server or a raspberry pi... 13 | 14 | ### PHP 15 | 16 | * Install [composer](https://getcomposer.org/) 17 | * Install dependencies via composer: 18 | 19 | ``` 20 | composer install 21 | composer dump-autoload -o 22 | ``` 23 | 24 | ### Instagram 25 | 26 | * Register for an account, make a note of your username and password 27 | 28 | ### flickr 29 | 30 | * Register for an account, request an [API key](https://www.flickr.com/services/apps/create/), make a note of your User ID, API key and secret 31 | 32 | * If you want to use private photos, you'll also need to add an oauth key. This can be generated with the following script: 33 | 34 | - [http://mkelsey.com/2011/07/03/Flickr-oAuth-Python-Example/](http://mkelsey.com/2011/07/03/Flickr-oAuth-Python-Example/) 35 | - [https://github.com/kelsmj/FlickrOAuth](https://github.com/kelsmj/FlickrOAuth) 36 | 37 | ### Config 38 | 39 | * duplicate the `config.sample.php` file, call the new file `config.php` and enter relevant details 40 | 41 | ## Usage 42 | 43 | * To get the latest image from flickr, run this command: 44 | 45 | ``` 46 | php download.php 47 | ``` 48 | 49 | * To upload the latest image to Instagram, run this command: 50 | 51 | ``` 52 | php upload.php 53 | ``` 54 | 55 | The easiest way to manage this is to set it up with a [cron](https://help.ubuntu.com/community/CronHowto) to run both of the scripts above periodically, e.g. every 10 minutes or so. 56 | 57 | ``` 58 | 5,15,25,35,45,55 * * * * /usr/bin/php /home/pi/instagram-uploader/download.php 59 | 0,10,20,30,40,50 * * * * /usr/bin/php /home/pi/instagram-uploader/upload.php 60 | ``` 61 | 62 | Alternatively, to upload photos at random intervals, call a cron every minute: 63 | 64 | ``` 65 | # runs every minute 66 | * * * * * /usr/bin/php /home/pi/cron-countdown/countdown.php 67 | ``` 68 | 69 | And create a countdown script to generate a random number that triggers the next upload: 70 | 71 | ``` 72 | 0) { 80 | writeFile(--$val); 81 | } else { 82 | $rand = rand(10, 60); // 10-60 mins 83 | writeFile($rand); 84 | require __DIR__ . '/upload.php'; 85 | } 86 | 87 | function writeFile ($val) { 88 | global $filename; 89 | $fp = fopen($filename, 'w'); 90 | fwrite($fp, $val); 91 | fclose($fp); 92 | } 93 | ``` 94 | -------------------------------------------------------------------------------- /uploader-js/upload.js: -------------------------------------------------------------------------------- 1 | const { IgApiClient } = require('instagram-private-api'); 2 | const { appendFile, readFile, writeFile } = require('fs'); 3 | const { promisify } = require('util'); 4 | 5 | const readFileAsync = promisify(readFile); 6 | const appendFileAsync = promisify(appendFile); 7 | const writeFileAsync = promisify(writeFile); 8 | const ig = new IgApiClient(); 9 | 10 | const lastImageNumberFile = `${__dirname}/../data/uploader-last-image.txt`; 11 | const logFile = `${__dirname}/../data/log.txt`; 12 | 13 | (async () => { 14 | const nextImageNumber = await getNextImageNumber(); 15 | 16 | const data = await getData(nextImageNumber); 17 | if (!data) return; 18 | 19 | const image = getImage(data); 20 | const type = getType(data); 21 | const caption = getCaption(data); 22 | 23 | if (image) { 24 | try { 25 | 26 | await login(); 27 | 28 | if (type === 'photo') { 29 | await uploadImage(image, caption); 30 | await log(`${nextImageNumber} - image uploaded`); 31 | } else if (type === 'video') { 32 | await uploadVideo(image, caption); 33 | await log(`${nextImageNumber} - video uploaded`); 34 | } 35 | 36 | await incrementImageNumber(nextImageNumber); 37 | } catch (e) { 38 | await log(e.message); 39 | } 40 | } 41 | })(); 42 | 43 | async function login() { 44 | const config = require(`${__dirname}/config`); 45 | ig.state.generateDevice(config.username); 46 | // ig.state.proxyUrl = config.proxy; 47 | await ig.account.login(config.username, config.password); 48 | } 49 | 50 | async function getNextImageNumber() { 51 | try { 52 | const imageNumber = await readFileAsync(lastImageNumberFile); 53 | if (!imageNumber) { 54 | return 1; 55 | } else { 56 | return parseInt(imageNumber, 10) + 1; 57 | } 58 | } catch (e) { 59 | log(e.message); 60 | return 1; 61 | } 62 | } 63 | 64 | async function getData(nextImageNumber) { 65 | const filePath = `${__dirname}/../files/${nextImageNumber}.json`; 66 | try { 67 | const data = await readFileAsync(filePath); 68 | if (!data) return; 69 | return JSON.parse(data); 70 | } catch (e) { 71 | return; 72 | } 73 | } 74 | 75 | function getImage(data) { 76 | if (data.img) { 77 | return data.img; 78 | } 79 | return; 80 | } 81 | 82 | function getType(data) { 83 | if (data.sizes) { 84 | return data.sizes.media; 85 | } 86 | return; 87 | } 88 | 89 | function getCaption(data) { 90 | let caption = ""; 91 | 92 | if (data.info.title) { 93 | caption += "\n" + data.info.title + "\n"; 94 | } 95 | if (data.info.description) { 96 | caption += "\n" + data.info.description + "\n"; 97 | } 98 | if (data.info.date) { 99 | caption += "\nPhoto taken on " + data.info.date + "\n"; 100 | } 101 | 102 | caption += "\n"; 103 | 104 | if (data.exif) { 105 | 106 | if (data.exif.Model && data.exif.Make) { 107 | if (data.exif.Model.includes(data.exif.Make)) { 108 | caption += "\nCamera: " + data.exif.Model; 109 | } else { 110 | caption += "\nCamera: " + data.exif.Make + " " + data.exif.Model; 111 | } 112 | } 113 | 114 | if (data.exif["Lens Model"]) { 115 | caption += "\nLens: " + data.exif["Lens Model"]; 116 | } 117 | if (data.exif["Exposure"]) { 118 | caption += "\nExposure: " + data.exif["Exposure"]; 119 | } 120 | if (data.exif["Aperture"]) { 121 | caption += "\nAperture: " + data.exif["Aperture"]; 122 | } 123 | if (data.exif["Focal Length"]) { 124 | caption += "\nFocal Length: " + data.exif["Focal Length"]; 125 | } 126 | if (data.exif["ISO Speed"]) { 127 | caption += "\nISO Speed: " + data.exif["ISO Speed"]; 128 | } 129 | 130 | caption += "\n"; 131 | } 132 | 133 | if (data.info.albums && data.info.albums.length > 0) { 134 | caption += "\nAlbums: " + data.info.albums; 135 | } 136 | 137 | if (data.info.tags && data.info.tags.length > 0) { 138 | caption += "\n\nTags: " + data.info.tags; 139 | } 140 | 141 | return caption.trim(); 142 | } 143 | 144 | async function uploadImage(image, caption) { 145 | const publishResult = await ig.publish.photo({ 146 | file: await readFileAsync(image), 147 | caption: caption, 148 | }); 149 | return publishResult; 150 | } 151 | 152 | async function uploadVideo(image, caption) { 153 | const publishResult = await ig.publish.video({ 154 | video: await readFileAsync(image), 155 | caption: caption, 156 | }); 157 | return publishResult; 158 | } 159 | 160 | async function incrementImageNumber(nextImageNumber) { 161 | await writeFileAsync(lastImageNumberFile, nextImageNumber); 162 | } 163 | 164 | async function log(message) { 165 | const date = new Date(); 166 | const formattedMessage = `${date.toString()}: ${message}\n`; 167 | await appendFileAsync(logFile, formattedMessage); 168 | console.log(formattedMessage); 169 | } -------------------------------------------------------------------------------- /uploader/uploader.php: -------------------------------------------------------------------------------- 1 | config = $config; 13 | } 14 | 15 | public function connect() 16 | { 17 | $this->instagram = new \InstagramAPI\Instagram($this->config['debug']); 18 | 19 | try { 20 | $this->instagram->login($this->config['instagram']['username'], $this->config['instagram']['password']); 21 | } catch (Exception $e) { 22 | $this->log("Login issue: " . $e->getMessage()); 23 | echo $e->getMessage(); 24 | exit(); 25 | } 26 | } 27 | 28 | public function update() 29 | { 30 | $this->imageNumber = $this->getNextImageNumber(); 31 | 32 | $data = $this->getData(); 33 | if (!$data) { 34 | return; 35 | } 36 | 37 | $image = $this->getImage($data); 38 | $type = $this->getType($data); 39 | $caption = $this->getCaption($data); 40 | 41 | try { 42 | if (isset($image) && !empty($image)) { 43 | $this->connect(); 44 | if ($type == "photo") { 45 | $photo = new \InstagramAPI\Media\Photo\InstagramPhoto($image); 46 | $this->instagram->timeline->uploadPhoto($photo->getFile(), ['caption' => $caption]); 47 | $this->log($this->imageNumber . " - Image uploaded"); 48 | } else if ($type == "video") { 49 | $video = new \InstagramAPI\Media\Video\InstagramVideo($image); 50 | $this->instagram->timeline->uploadVideo($video->getFile(), ['caption' => $caption]); 51 | $this->log($this->imageNumber . " - Video uploaded"); 52 | } 53 | } 54 | } catch (\Exception $e) { 55 | echo $e->getMessage(); 56 | $this->log($this->imageNumber . " - Error, " . $e->getMessage()); 57 | return; 58 | } 59 | 60 | $this->incrementImageNumber(); 61 | } 62 | 63 | private function getNextImageNumber() 64 | { 65 | $imageNumber = @file_get_contents($this->lastImageNumberFile); 66 | if (!$imageNumber) { 67 | return 1; 68 | } else { 69 | return intval($imageNumber) + 1; 70 | } 71 | } 72 | 73 | private function getData() 74 | { 75 | $data = @file_get_contents(__DIR__ . '/../files/' . $this->imageNumber . '.json', 'w'); 76 | if (!$data) return; 77 | return json_decode($data); 78 | } 79 | 80 | private function getImage($data) 81 | { 82 | if (!isset($data->img)) return; 83 | return $data->img; 84 | } 85 | 86 | private function getType($data) 87 | { 88 | if (!isset($data->sizes)) return; 89 | return $data->sizes->media; 90 | } 91 | 92 | private function getCaption($data) 93 | { 94 | $caption = ""; 95 | if (isset($data->info->title)) { 96 | $caption .= "\n" . $data->info->title . "\n"; 97 | } 98 | if (isset($data->info->description)) { 99 | $caption .= "\n" . $data->info->description . "\n"; 100 | } 101 | if (isset($data->info->date)) { 102 | $caption .= "\nPhoto taken on " . $data->info->date . "\n"; 103 | } 104 | 105 | $caption .= "\n"; 106 | 107 | if (isset($data->exif)) { 108 | 109 | if (isset($data->exif->Model) && isset($data->exif->Make)) { 110 | if (strpos($data->exif->Model, $data->exif->Make) !== false) { 111 | $caption .= "\nCamera: " . $data->exif->Model; 112 | } else { 113 | $caption .= "\nCamera: " . $data->exif->Make . " " . $data->exif->Model; 114 | } 115 | } 116 | 117 | if (isset($data->exif->{"Lens Model"})) { 118 | $caption .= "\nLens: " . $data->exif->{"Lens Model"}; 119 | } 120 | if (isset($data->exif->{"Exposure"})) { 121 | $caption .= "\nExposure: " . $data->exif->{"Exposure"}; 122 | } 123 | if (isset($data->exif->{"Aperture"})) { 124 | $caption .= "\nAperture: " . $data->exif->{"Aperture"}; 125 | } 126 | if (isset($data->exif->{"Focal Length"})) { 127 | $caption .= "\nFocal Length: " . $data->exif->{"Focal Length"}; 128 | } 129 | if (isset($data->exif->{"ISO Speed"})) { 130 | $caption .= "\nISO Speed: " . $data->exif->{"ISO Speed"}; 131 | } 132 | 133 | $caption .= "\n"; 134 | } 135 | 136 | if (isset($data->info->albums) && !empty($data->info->albums)) { 137 | $caption .= "\nAlbums: " . $data->info->albums; 138 | } 139 | 140 | if (isset($data->info->tags) && !empty($data->info->tags)) { 141 | $caption .= "\n\nTags: " . $data->info->tags; 142 | } 143 | 144 | return trim($caption); 145 | } 146 | 147 | private function incrementImageNumber() 148 | { 149 | $fp = fopen($this->lastImageNumberFile, 'w'); 150 | fwrite($fp, $this->imageNumber); 151 | fclose($fp); 152 | } 153 | 154 | private function log($log) 155 | { 156 | $fp = fopen($this->logFile, 'a'); 157 | fwrite($fp, date("Y-m-d H:i:s") . ": " . $log . "\n"); 158 | fclose($fp); 159 | } 160 | } 161 | -------------------------------------------------------------------------------- /downloader/downloader.php: -------------------------------------------------------------------------------- 1 | config = $config; 13 | $this->flickr = new \JeroenG\Flickr\Flickr(new \JeroenG\Flickr\Api($this->config['flickr']['key'], $this->format)); 14 | } 15 | 16 | public function update() 17 | { 18 | $this->imageNumber = $this->getNextImageNumber(); 19 | $this->debug('imageNumber:', $this->imageNumber); 20 | 21 | $photo = $this->getPhoto(); 22 | if (!$photo) { 23 | $this->debug('No new photos:'); 24 | return; 25 | } 26 | 27 | $info = $this->getPhotoInfo($photo); 28 | $this->debug('info:', $info); 29 | 30 | $exif = $this->getPhotoExif($photo); 31 | $this->debug('exif:', $exif); 32 | 33 | $sizes = $this->getPhotoSizes($photo); 34 | $this->debug('sizes:', $sizes); 35 | 36 | if ($sizes['media'] == 'photo') { 37 | $img = $this->downloadImage($sizes['source']); 38 | $this->checkImageRatio($img); 39 | } else if ($sizes['media'] == 'video') { 40 | $img = $this->downloadVideo($sizes['source']); 41 | } else { 42 | $img = ''; 43 | } 44 | 45 | $this->saveData($info, $exif, $sizes, $img); 46 | 47 | $this->incrementImageNumber(); 48 | } 49 | 50 | private function getNextImageNumber() 51 | { 52 | $imageNumber = @file_get_contents($this->lastImageNumberFile); 53 | if (!$imageNumber) { 54 | return 1; 55 | } else { 56 | return intval($imageNumber) + 1; 57 | } 58 | } 59 | 60 | private function getPhoto() 61 | { 62 | $photo = $this->flickr->request('flickr.photos.search', [ 63 | 'user_id' => $this->config['flickr']['user_id'], 64 | 'oauth_token' => $this->config['flickr']['oauth_token'], 65 | 'oauth_consumer_key' => $this->config['flickr']['key'], 66 | 'sort' => 'date-posted-asc', 67 | 'per_page' => '1', 68 | 'tags' => '#insta', 69 | 'page' => $this->imageNumber, 70 | ]); 71 | if (($this->imageNumber) > $photo->photos['total']) { 72 | return; 73 | } else { 74 | return $photo->photos['photo'][0]; 75 | } 76 | } 77 | 78 | private function getPhotoInfo($photo) 79 | { 80 | $info = $this->flickr->request('flickr.photos.getInfo', [ 81 | 'photo_id' => $photo['id'], 82 | 'secret' => $photo['secret'], 83 | 'oauth_token' => $this->config['flickr']['oauth_token'], 84 | 'oauth_consumer_key' => $this->config['flickr']['key'], 85 | ]); 86 | 87 | $albums = $this->flickr->request('flickr.photos.getAllContexts', [ 88 | 'photo_id' => $photo['id'], 89 | 'secret' => $photo['secret'], 90 | 'oauth_token' => $this->config['flickr']['oauth_token'], 91 | 'oauth_consumer_key' => $this->config['flickr']['key'], 92 | ]); 93 | 94 | return [ 95 | 'title' => $info->photo['title']['_content'], 96 | 'description' => strip_tags($info->photo['description']['_content']), 97 | 'date' => date('l jS F Y, g:i:s a', strtotime($info->photo['dates']['taken'])), 98 | 'albums' => $this->parseAlbums($albums->set), 99 | 'tags' => $this->parseTags($info->photo['tags']['tag']) 100 | ]; 101 | } 102 | 103 | private function getPhotoExif($photo) 104 | { 105 | $exif = $this->flickr->request('flickr.photos.getExif', [ 106 | 'photo_id' => $photo['id'], 107 | 'secret' => $photo['secret'], 108 | 'oauth_token' => $this->config['flickr']['oauth_token'], 109 | 'oauth_consumer_key' => $this->config['flickr']['key'], 110 | ]); 111 | 112 | $data = []; 113 | $fields = ['Make', 'Model', 'Lens Model', 'Exposure', 'Aperture', 'Focal Length', 'ISO Speed']; 114 | 115 | foreach ($exif->photo['exif'] as $item) { 116 | if (in_array($item['label'], $fields)) { 117 | if (isset($item['clean'])) { 118 | $data[$item['label']] = $item['clean']['_content']; 119 | } else { 120 | $data[$item['label']] = $item['raw']['_content']; 121 | } 122 | } 123 | } 124 | 125 | return $data; 126 | } 127 | 128 | private function getPhotoSizes($photo) 129 | { 130 | $sizes = $this->flickr->request('flickr.photos.getSizes', [ 131 | 'photo_id' => $photo['id'], 132 | 'secret' => $photo['secret'], 133 | 'oauth_token' => $this->config['flickr']['oauth_token'], 134 | 'oauth_consumer_key' => $this->config['flickr']['key'], 135 | ]); 136 | return @end($sizes->sizes['size']); 137 | } 138 | 139 | private function downloadImage($path) 140 | { 141 | $extension = pathinfo($path, PATHINFO_EXTENSION); 142 | $extension = explode('?', $extension)[0]; 143 | $dest = __DIR__ . '/../files/' . $this->imageNumber . '.' . $extension; 144 | 145 | $this->downloadFile($path, $dest); 146 | 147 | $this->debug('downloadImage:', $dest); 148 | return $dest; 149 | } 150 | 151 | private function downloadVideo($path) 152 | { 153 | $headers = $this->downloadFileHeaders($path); 154 | $headersArray = $this->createHeadersArrayFromCurlResponse($headers); 155 | if (count($headersArray) < 1) return; 156 | 157 | $location = $headersArray[0]['Location']; 158 | $filename = explode('?', $location)[0]; 159 | $extension = pathinfo($filename, PATHINFO_EXTENSION); 160 | 161 | $dest = __DIR__ . '/../files/' . $this->imageNumber . '.' . $extension; 162 | 163 | $this->downloadFile($location, $dest); 164 | 165 | $this->debug('downloadVideo:', $dest); 166 | return $dest; 167 | } 168 | 169 | private function downloadFile($path, $dest) 170 | { 171 | $ch = curl_init($path); 172 | $fp = fopen($dest, 'wb'); 173 | curl_setopt($ch, CURLOPT_FILE, $fp); 174 | curl_setopt($ch, CURLOPT_HEADER, 0); 175 | curl_exec($ch); 176 | curl_close($ch); 177 | fclose($fp); 178 | } 179 | 180 | private function downloadFileHeaders($path) 181 | { 182 | $ch = curl_init(); 183 | curl_setopt($ch, CURLOPT_URL, $path); 184 | curl_setopt($ch, CURLOPT_HEADER, true); 185 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 186 | $headers = curl_exec($ch); 187 | curl_close($ch); 188 | return $headers; 189 | } 190 | 191 | private function createHeadersArrayFromCurlResponse($headerContent) 192 | { 193 | $headers = array(); 194 | $arrRequests = explode("\r\n\r\n", $headerContent); 195 | for ($index = 0; $index < count($arrRequests) -1; $index++) { 196 | foreach (explode("\r\n", $arrRequests[$index]) as $i => $line) 197 | { 198 | if ($i === 0) 199 | $headers[$index]['http_code'] = $line; 200 | else 201 | { 202 | list ($key, $value) = explode(': ', $line); 203 | $headers[$index][$key] = $value; 204 | } 205 | } 206 | } 207 | return $headers; 208 | } 209 | 210 | private function checkImageRatio($img) 211 | { 212 | $maxLandscapeRatio = 1.8/1; 213 | $maxPortraitRatio = 5/4; 214 | 215 | $imageDimensions = getimagesize($img); 216 | $width = $imageDimensions[0]; 217 | $height = $imageDimensions[1]; 218 | $rotation = 0; 219 | 220 | $exif = exif_read_data($img); 221 | if(!empty($exif['Orientation']) && 222 | ($exif['Orientation'] === 6 || $exif['Orientation'] === 8)) { 223 | $width = $imageDimensions[1]; 224 | $height = $imageDimensions[0]; 225 | 226 | if ($exif['Orientation'] === 6) { 227 | $rotation = 270; 228 | } 229 | if ($exif['Orientation'] === 8) { 230 | $rotation = 90; 231 | } 232 | } 233 | 234 | if ($width > $height && $width/$height > $maxLandscapeRatio) { 235 | $newHeight = floor($width / $maxLandscapeRatio); 236 | $x = 0; 237 | $y = -floor(($newHeight - $height) / 2); 238 | $this->resizeImage($img, $width, $newHeight, $x, $y, $rotation); 239 | } else if ($height > $width && $height/$width > $maxPortraitRatio) { 240 | $newWidth = floor($height / $maxPortraitRatio); 241 | $y = 0; 242 | $x = -floor(($newWidth - $width) / 2); 243 | $this->resizeImage($img, $newWidth, $height, $x, $y, $rotation); 244 | } 245 | } 246 | 247 | private function resizeImage($img, $width, $height, $x, $y, $rotation) 248 | { 249 | $pathinfo = pathinfo($img); 250 | 251 | if ($pathinfo['extension'] == "jpg" || $pathinfo['extension'] == "jpeg") { 252 | $src = imagecreatefromjpeg($img); 253 | } else if ($pathinfo['extension'] == "png") { 254 | $src = imagecreatefrompng($img); 255 | } else if ($pathinfo['extension'] == "gif") { 256 | $src = imagecreatefromgif($img); 257 | } else { 258 | return; 259 | } 260 | 261 | copy($img, $pathinfo['dirname'] . '/' . $pathinfo['filename'] . '-original.' . $pathinfo['extension']); 262 | 263 | $tmp = imagecreatetruecolor($width, $height); 264 | $backgroundColor = imagecolorallocate($tmp, 255, 255, 255); 265 | imagefill($tmp, 0, 0, $backgroundColor); 266 | $rotatedSrc = imagerotate($src, $rotation, 0); 267 | imagecopyresampled($tmp, $rotatedSrc, 0, 0, $x, $y, $width, $height, $width, $height); 268 | imagejpeg($tmp, $img, 100); 269 | imagedestroy($src); 270 | imagedestroy($tmp); 271 | 272 | $this->debug('resizeImage:', $img); 273 | } 274 | 275 | private function saveData($info, $exif, $sizes, $img) 276 | { 277 | $data = [ 278 | 'info' => $info, 279 | 'exif' => $exif, 280 | 'sizes' => $sizes 281 | ]; 282 | 283 | if (isset($img) && !empty($img)) { 284 | $data['img'] = $img; 285 | } 286 | 287 | $fp = fopen(__DIR__ . '/../files/' . $this->imageNumber . '.json', 'w'); 288 | fwrite($fp, json_encode($data)); 289 | fclose($fp); 290 | } 291 | 292 | private function incrementImageNumber() 293 | { 294 | $fp = fopen($this->lastImageNumberFile, 'w'); 295 | fwrite($fp, $this->imageNumber); 296 | fclose($fp); 297 | } 298 | 299 | private function parseTags($tags) 300 | { 301 | $tagString = ''; 302 | foreach ($tags as $tag) { 303 | $tagString .= $this->camelCase($tag['raw']) . ', '; 304 | } 305 | return rtrim(trim($tagString), ', '); 306 | } 307 | 308 | private function parseAlbums($albums) 309 | { 310 | $albumString = ''; 311 | foreach ($albums as $album) { 312 | $albumString .= $album['title'] . ', '; 313 | } 314 | return rtrim(trim($albumString), ', '); 315 | } 316 | 317 | private function camelCase($str) 318 | { 319 | $str = preg_replace('/[^a-z0-9]+/i', ' ', $str); 320 | $str = trim($str); 321 | $str = ucwords($str); 322 | $str = str_replace(' ', '', $str); 323 | $str = lcfirst($str); 324 | return $str; 325 | } 326 | 327 | private function debug($msg, $obj = null) 328 | { 329 | if ($this->config['debug']) { 330 | echo $msg; 331 | if (isset($obj)) { 332 | print_r($obj); 333 | } 334 | echo "\n"; 335 | } 336 | } 337 | } 338 | -------------------------------------------------------------------------------- /uploader-js/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "requires": true, 3 | "lockfileVersion": 1, 4 | "dependencies": { 5 | "@lifeomic/attempt": { 6 | "version": "3.0.0", 7 | "resolved": "https://registry.npmjs.org/@lifeomic/attempt/-/attempt-3.0.0.tgz", 8 | "integrity": "sha512-Ibk4Vfl46dSrhtH5fHsrTA4waAuyP7/qcr3uo0mO70azRc6LWgJILlMy3B1oOvyiN9jQcdqwsThaQkPKLiYKTg==" 9 | }, 10 | "@types/bluebird": { 11 | "version": "3.5.30", 12 | "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.30.tgz", 13 | "integrity": "sha512-8LhzvcjIoqoi1TghEkRMkbbmM+jhHnBokPGkJWjclMK+Ks0MxEBow3/p2/iFTZ+OIbJHQDSfpgdZEb+af3gfVw==" 14 | }, 15 | "@types/caseless": { 16 | "version": "0.12.2", 17 | "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.2.tgz", 18 | "integrity": "sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w==" 19 | }, 20 | "@types/chance": { 21 | "version": "1.0.10", 22 | "resolved": "https://registry.npmjs.org/@types/chance/-/chance-1.0.10.tgz", 23 | "integrity": "sha512-929ISFKdeE72r6VuorB5BMjuwQ+t5rx3MLsHq5i+dCM4aJVGb+EJ+mUmaEcqENzoLZuH3xkNpklBip4guQAYiA==" 24 | }, 25 | "@types/node": { 26 | "version": "13.11.1", 27 | "resolved": "https://registry.npmjs.org/@types/node/-/node-13.11.1.tgz", 28 | "integrity": "sha512-eWQGP3qtxwL8FGneRrC5DwrJLGN4/dH1clNTuLfN81HCrxVtxRjygDTUoZJ5ASlDEeo0ppYFQjQIlXhtXpOn6g==" 29 | }, 30 | "@types/request": { 31 | "version": "2.48.4", 32 | "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.4.tgz", 33 | "integrity": "sha512-W1t1MTKYR8PxICH+A4HgEIPuAC3sbljoEVfyZbeFJJDbr30guDspJri2XOaM2E+Un7ZjrihaDi7cf6fPa2tbgw==", 34 | "requires": { 35 | "@types/caseless": "*", 36 | "@types/node": "*", 37 | "@types/tough-cookie": "*", 38 | "form-data": "^2.5.0" 39 | } 40 | }, 41 | "@types/request-promise": { 42 | "version": "4.1.46", 43 | "resolved": "https://registry.npmjs.org/@types/request-promise/-/request-promise-4.1.46.tgz", 44 | "integrity": "sha512-3Thpj2Va5m0ji3spaCk8YKrjkZyZc6RqUVOphA0n/Xet66AW/AiOAs5vfXhQIL5NmkaO7Jnun7Nl9NEjJ2zBaw==", 45 | "requires": { 46 | "@types/bluebird": "*", 47 | "@types/request": "*" 48 | } 49 | }, 50 | "@types/tough-cookie": { 51 | "version": "4.0.0", 52 | "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.0.tgz", 53 | "integrity": "sha512-I99sngh224D0M7XgW1s120zxCt3VYQ3IQsuw3P3jbq5GG4yc79+ZjyKznyOGIQrflfylLgcfekeZW/vk0yng6A==" 54 | }, 55 | "ajv": { 56 | "version": "6.12.0", 57 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz", 58 | "integrity": "sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==", 59 | "requires": { 60 | "fast-deep-equal": "^3.1.1", 61 | "fast-json-stable-stringify": "^2.0.0", 62 | "json-schema-traverse": "^0.4.1", 63 | "uri-js": "^4.2.2" 64 | } 65 | }, 66 | "asn1": { 67 | "version": "0.2.4", 68 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", 69 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", 70 | "requires": { 71 | "safer-buffer": "~2.1.0" 72 | } 73 | }, 74 | "assert-plus": { 75 | "version": "1.0.0", 76 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 77 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 78 | }, 79 | "asynckit": { 80 | "version": "0.4.0", 81 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 82 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 83 | }, 84 | "aws-sign2": { 85 | "version": "0.7.0", 86 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 87 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 88 | }, 89 | "aws4": { 90 | "version": "1.9.1", 91 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", 92 | "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==" 93 | }, 94 | "bcrypt-pbkdf": { 95 | "version": "1.0.2", 96 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 97 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", 98 | "requires": { 99 | "tweetnacl": "^0.14.3" 100 | } 101 | }, 102 | "bignumber.js": { 103 | "version": "7.2.1", 104 | "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-7.2.1.tgz", 105 | "integrity": "sha512-S4XzBk5sMB+Rcb/LNcpzXr57VRTxgAvaAEDAl1AwRx27j00hT84O6OkteE7u8UB3NuaaygCRrEpqox4uDOrbdQ==" 106 | }, 107 | "bluebird": { 108 | "version": "3.7.2", 109 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", 110 | "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" 111 | }, 112 | "caseless": { 113 | "version": "0.12.0", 114 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 115 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 116 | }, 117 | "chance": { 118 | "version": "1.1.4", 119 | "resolved": "https://registry.npmjs.org/chance/-/chance-1.1.4.tgz", 120 | "integrity": "sha512-pXPDSu3knKlb6H7ahQfpq//J9mSOxYK8SMtp8MV/nRJh8aLRDIl0ipLH8At8+nVogVwtvPZzyIzY/EbcY/cLuQ==" 121 | }, 122 | "class-transformer": { 123 | "version": "0.2.3", 124 | "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.2.3.tgz", 125 | "integrity": "sha512-qsP+0xoavpOlJHuYsQJsN58HXSl8Jvveo+T37rEvCEeRfMWoytAyR0Ua/YsFgpM6AZYZ/og2PJwArwzJl1aXtQ==" 126 | }, 127 | "combined-stream": { 128 | "version": "1.0.8", 129 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 130 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 131 | "requires": { 132 | "delayed-stream": "~1.0.0" 133 | } 134 | }, 135 | "core-util-is": { 136 | "version": "1.0.2", 137 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 138 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 139 | }, 140 | "dashdash": { 141 | "version": "1.14.1", 142 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 143 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 144 | "requires": { 145 | "assert-plus": "^1.0.0" 146 | } 147 | }, 148 | "debug": { 149 | "version": "4.1.1", 150 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 151 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 152 | "requires": { 153 | "ms": "^2.1.1" 154 | } 155 | }, 156 | "delayed-stream": { 157 | "version": "1.0.0", 158 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 159 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 160 | }, 161 | "ecc-jsbn": { 162 | "version": "0.1.2", 163 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 164 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", 165 | "requires": { 166 | "jsbn": "~0.1.0", 167 | "safer-buffer": "^2.1.0" 168 | } 169 | }, 170 | "extend": { 171 | "version": "3.0.2", 172 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 173 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" 174 | }, 175 | "extsprintf": { 176 | "version": "1.3.0", 177 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 178 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 179 | }, 180 | "fast-deep-equal": { 181 | "version": "3.1.1", 182 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", 183 | "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==" 184 | }, 185 | "fast-json-stable-stringify": { 186 | "version": "2.1.0", 187 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 188 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" 189 | }, 190 | "forever-agent": { 191 | "version": "0.6.1", 192 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 193 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 194 | }, 195 | "form-data": { 196 | "version": "2.5.1", 197 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", 198 | "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", 199 | "requires": { 200 | "asynckit": "^0.4.0", 201 | "combined-stream": "^1.0.6", 202 | "mime-types": "^2.1.12" 203 | } 204 | }, 205 | "getpass": { 206 | "version": "0.1.7", 207 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 208 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 209 | "requires": { 210 | "assert-plus": "^1.0.0" 211 | } 212 | }, 213 | "har-schema": { 214 | "version": "2.0.0", 215 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 216 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 217 | }, 218 | "har-validator": { 219 | "version": "5.1.3", 220 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", 221 | "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", 222 | "requires": { 223 | "ajv": "^6.5.5", 224 | "har-schema": "^2.0.0" 225 | } 226 | }, 227 | "http-signature": { 228 | "version": "1.2.0", 229 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 230 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 231 | "requires": { 232 | "assert-plus": "^1.0.0", 233 | "jsprim": "^1.2.2", 234 | "sshpk": "^1.7.0" 235 | } 236 | }, 237 | "image-size": { 238 | "version": "0.7.5", 239 | "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.7.5.tgz", 240 | "integrity": "sha512-Hiyv+mXHfFEP7LzUL/llg9RwFxxY+o9N3JVLIeG5E7iFIFAalxvRU9UZthBdYDEVnzHMgjnKJPPpay5BWf1g9g==" 241 | }, 242 | "instagram-private-api": { 243 | "version": "1.39.2", 244 | "resolved": "https://registry.npmjs.org/instagram-private-api/-/instagram-private-api-1.39.2.tgz", 245 | "integrity": "sha512-ChaSh5CyYmVePFU0oKtzdrmDmSc2SLBy9oslfJVxvkONR9O9P8kCGe4CZcwjHjkTeSz/o7aGUm35rC9cs6N9Ig==", 246 | "requires": { 247 | "@lifeomic/attempt": "^3.0.0", 248 | "@types/chance": "^1.0.2", 249 | "@types/request-promise": "^4.1.43", 250 | "bluebird": "^3.7.1", 251 | "chance": "^1.0.18", 252 | "class-transformer": "^0.2.0", 253 | "debug": "^4.1.1", 254 | "image-size": "^0.7.3", 255 | "json-bigint": "^0.3.0", 256 | "lodash": "^4.17.5", 257 | "luxon": "^1.12.1", 258 | "reflect-metadata": "^0.1.13", 259 | "request": "^2.88.0", 260 | "request-promise": "^4.2.4", 261 | "rxjs": "^6.5.2", 262 | "snakecase-keys": "^3.1.0", 263 | "tough-cookie": "^2.5.0", 264 | "ts-custom-error": "^2.2.2", 265 | "ts-xor": "^1.0.6", 266 | "url-regex": "^5.0.0", 267 | "utility-types": "^3.10.0" 268 | } 269 | }, 270 | "ip-regex": { 271 | "version": "4.1.0", 272 | "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.1.0.tgz", 273 | "integrity": "sha512-pKnZpbgCTfH/1NLIlOduP/V+WRXzC2MOz3Qo8xmxk8C5GudJLgK5QyLVXOSWy3ParAH7Eemurl3xjv/WXYFvMA==" 274 | }, 275 | "is-typedarray": { 276 | "version": "1.0.0", 277 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 278 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 279 | }, 280 | "isstream": { 281 | "version": "0.1.2", 282 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 283 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 284 | }, 285 | "jsbn": { 286 | "version": "0.1.1", 287 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 288 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" 289 | }, 290 | "json-bigint": { 291 | "version": "0.3.0", 292 | "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-0.3.0.tgz", 293 | "integrity": "sha1-DM2RLEuCcNBfBW+9E4FLU9OCWx4=", 294 | "requires": { 295 | "bignumber.js": "^7.0.0" 296 | } 297 | }, 298 | "json-schema": { 299 | "version": "0.2.3", 300 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 301 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 302 | }, 303 | "json-schema-traverse": { 304 | "version": "0.4.1", 305 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 306 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 307 | }, 308 | "json-stringify-safe": { 309 | "version": "5.0.1", 310 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 311 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 312 | }, 313 | "jsprim": { 314 | "version": "1.4.1", 315 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 316 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 317 | "requires": { 318 | "assert-plus": "1.0.0", 319 | "extsprintf": "1.3.0", 320 | "json-schema": "0.2.3", 321 | "verror": "1.10.0" 322 | } 323 | }, 324 | "lodash": { 325 | "version": "4.17.15", 326 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", 327 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" 328 | }, 329 | "luxon": { 330 | "version": "1.23.0", 331 | "resolved": "https://registry.npmjs.org/luxon/-/luxon-1.23.0.tgz", 332 | "integrity": "sha512-+6a/bXsCWrrR8vfbL41iM92es12zwV2Rum/KPkT+ubOZnnU3Sqbqok/FmD1xsWlWN2Y9Hu0fU/vNgU24ns7bpA==" 333 | }, 334 | "map-obj": { 335 | "version": "4.1.0", 336 | "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.1.0.tgz", 337 | "integrity": "sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g==" 338 | }, 339 | "mime-db": { 340 | "version": "1.43.0", 341 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", 342 | "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==" 343 | }, 344 | "mime-types": { 345 | "version": "2.1.26", 346 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", 347 | "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", 348 | "requires": { 349 | "mime-db": "1.43.0" 350 | } 351 | }, 352 | "ms": { 353 | "version": "2.1.2", 354 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 355 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 356 | }, 357 | "oauth-sign": { 358 | "version": "0.9.0", 359 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 360 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" 361 | }, 362 | "performance-now": { 363 | "version": "2.1.0", 364 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 365 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 366 | }, 367 | "psl": { 368 | "version": "1.8.0", 369 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", 370 | "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" 371 | }, 372 | "punycode": { 373 | "version": "2.1.1", 374 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 375 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 376 | }, 377 | "qs": { 378 | "version": "6.5.2", 379 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 380 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" 381 | }, 382 | "reflect-metadata": { 383 | "version": "0.1.13", 384 | "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", 385 | "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" 386 | }, 387 | "request": { 388 | "version": "2.88.2", 389 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", 390 | "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", 391 | "requires": { 392 | "aws-sign2": "~0.7.0", 393 | "aws4": "^1.8.0", 394 | "caseless": "~0.12.0", 395 | "combined-stream": "~1.0.6", 396 | "extend": "~3.0.2", 397 | "forever-agent": "~0.6.1", 398 | "form-data": "~2.3.2", 399 | "har-validator": "~5.1.3", 400 | "http-signature": "~1.2.0", 401 | "is-typedarray": "~1.0.0", 402 | "isstream": "~0.1.2", 403 | "json-stringify-safe": "~5.0.1", 404 | "mime-types": "~2.1.19", 405 | "oauth-sign": "~0.9.0", 406 | "performance-now": "^2.1.0", 407 | "qs": "~6.5.2", 408 | "safe-buffer": "^5.1.2", 409 | "tough-cookie": "~2.5.0", 410 | "tunnel-agent": "^0.6.0", 411 | "uuid": "^3.3.2" 412 | }, 413 | "dependencies": { 414 | "form-data": { 415 | "version": "2.3.3", 416 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", 417 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", 418 | "requires": { 419 | "asynckit": "^0.4.0", 420 | "combined-stream": "^1.0.6", 421 | "mime-types": "^2.1.12" 422 | } 423 | } 424 | } 425 | }, 426 | "request-promise": { 427 | "version": "4.2.5", 428 | "resolved": "https://registry.npmjs.org/request-promise/-/request-promise-4.2.5.tgz", 429 | "integrity": "sha512-ZgnepCykFdmpq86fKGwqntyTiUrHycALuGggpyCZwMvGaZWgxW6yagT0FHkgo5LzYvOaCNvxYwWYIjevSH1EDg==", 430 | "requires": { 431 | "bluebird": "^3.5.0", 432 | "request-promise-core": "1.1.3", 433 | "stealthy-require": "^1.1.1", 434 | "tough-cookie": "^2.3.3" 435 | } 436 | }, 437 | "request-promise-core": { 438 | "version": "1.1.3", 439 | "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.3.tgz", 440 | "integrity": "sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ==", 441 | "requires": { 442 | "lodash": "^4.17.15" 443 | } 444 | }, 445 | "rxjs": { 446 | "version": "6.5.5", 447 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.5.tgz", 448 | "integrity": "sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ==", 449 | "requires": { 450 | "tslib": "^1.9.0" 451 | } 452 | }, 453 | "safe-buffer": { 454 | "version": "5.2.0", 455 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", 456 | "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" 457 | }, 458 | "safer-buffer": { 459 | "version": "2.1.2", 460 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 461 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 462 | }, 463 | "snakecase-keys": { 464 | "version": "3.1.2", 465 | "resolved": "https://registry.npmjs.org/snakecase-keys/-/snakecase-keys-3.1.2.tgz", 466 | "integrity": "sha512-NrzHj8ctStnd1LYx3+L4buS7yildFum7WAbQQxkhPCNi3Qeqv7hoBne2c9n++HWxDG9Nv23pNEyyLCITZTv24Q==", 467 | "requires": { 468 | "map-obj": "^4.0.0", 469 | "to-snake-case": "^1.0.0" 470 | } 471 | }, 472 | "sshpk": { 473 | "version": "1.16.1", 474 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", 475 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", 476 | "requires": { 477 | "asn1": "~0.2.3", 478 | "assert-plus": "^1.0.0", 479 | "bcrypt-pbkdf": "^1.0.0", 480 | "dashdash": "^1.12.0", 481 | "ecc-jsbn": "~0.1.1", 482 | "getpass": "^0.1.1", 483 | "jsbn": "~0.1.0", 484 | "safer-buffer": "^2.0.2", 485 | "tweetnacl": "~0.14.0" 486 | } 487 | }, 488 | "stealthy-require": { 489 | "version": "1.1.1", 490 | "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", 491 | "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" 492 | }, 493 | "tlds": { 494 | "version": "1.207.0", 495 | "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.207.0.tgz", 496 | "integrity": "sha512-k7d7Q1LqjtAvhtEOs3yN14EabsNO8ZCoY6RESSJDB9lst3bTx3as/m1UuAeCKzYxiyhR1qq72ZPhpSf+qlqiwg==" 497 | }, 498 | "to-no-case": { 499 | "version": "1.0.2", 500 | "resolved": "https://registry.npmjs.org/to-no-case/-/to-no-case-1.0.2.tgz", 501 | "integrity": "sha1-xyKQcWTvaxeBMsjmmTAhLRtKoWo=" 502 | }, 503 | "to-snake-case": { 504 | "version": "1.0.0", 505 | "resolved": "https://registry.npmjs.org/to-snake-case/-/to-snake-case-1.0.0.tgz", 506 | "integrity": "sha1-znRpE4l5RgGah+Yu366upMYIq4w=", 507 | "requires": { 508 | "to-space-case": "^1.0.0" 509 | } 510 | }, 511 | "to-space-case": { 512 | "version": "1.0.0", 513 | "resolved": "https://registry.npmjs.org/to-space-case/-/to-space-case-1.0.0.tgz", 514 | "integrity": "sha1-sFLar7Gysp3HcM6gFj5ewOvJ/Bc=", 515 | "requires": { 516 | "to-no-case": "^1.0.0" 517 | } 518 | }, 519 | "tough-cookie": { 520 | "version": "2.5.0", 521 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", 522 | "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", 523 | "requires": { 524 | "psl": "^1.1.28", 525 | "punycode": "^2.1.1" 526 | } 527 | }, 528 | "ts-custom-error": { 529 | "version": "2.2.2", 530 | "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-2.2.2.tgz", 531 | "integrity": "sha512-I0FEdfdatDjeigRqh1JFj67bcIKyRNm12UVGheBjs2pXgyELg2xeiQLVaWu1pVmNGXZVnz/fvycSU41moBIpOg==" 532 | }, 533 | "ts-xor": { 534 | "version": "1.0.8", 535 | "resolved": "https://registry.npmjs.org/ts-xor/-/ts-xor-1.0.8.tgz", 536 | "integrity": "sha512-0u70/SDLSCaX23UddnwAb2GvZZ2N0Rbjnmemn5pHoR40D32Xcva5KRGWV9SdJOKHCjJUlmctmCTvT0z+2yT8aw==" 537 | }, 538 | "tslib": { 539 | "version": "1.11.1", 540 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", 541 | "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==" 542 | }, 543 | "tunnel-agent": { 544 | "version": "0.6.0", 545 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 546 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 547 | "requires": { 548 | "safe-buffer": "^5.0.1" 549 | } 550 | }, 551 | "tweetnacl": { 552 | "version": "0.14.5", 553 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 554 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" 555 | }, 556 | "uri-js": { 557 | "version": "4.2.2", 558 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 559 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 560 | "requires": { 561 | "punycode": "^2.1.0" 562 | } 563 | }, 564 | "url-regex": { 565 | "version": "5.0.0", 566 | "resolved": "https://registry.npmjs.org/url-regex/-/url-regex-5.0.0.tgz", 567 | "integrity": "sha512-O08GjTiAFNsSlrUWfqF1jH0H1W3m35ZyadHrGv5krdnmPPoxP27oDTqux/579PtaroiSGm5yma6KT1mHFH6Y/g==", 568 | "requires": { 569 | "ip-regex": "^4.1.0", 570 | "tlds": "^1.203.0" 571 | } 572 | }, 573 | "utility-types": { 574 | "version": "3.10.0", 575 | "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", 576 | "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" 577 | }, 578 | "uuid": { 579 | "version": "3.4.0", 580 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", 581 | "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" 582 | }, 583 | "verror": { 584 | "version": "1.10.0", 585 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 586 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 587 | "requires": { 588 | "assert-plus": "^1.0.0", 589 | "core-util-is": "1.0.2", 590 | "extsprintf": "^1.2.0" 591 | } 592 | } 593 | } 594 | } 595 | -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_readme": [ 3 | "This file locks the dependencies of your project to a known state", 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", 5 | "This file is @generated automatically" 6 | ], 7 | "content-hash": "7887bd751ecbecafb40b8aa68c9b9c1a", 8 | "packages": [ 9 | { 10 | "name": "binsoul/net-mqtt", 11 | "version": "0.2.1", 12 | "source": { 13 | "type": "git", 14 | "url": "https://github.com/binsoul/net-mqtt.git", 15 | "reference": "286b28e6014739b19e0e7ce0cd5871cdd0cef9b3" 16 | }, 17 | "dist": { 18 | "type": "zip", 19 | "url": "https://api.github.com/repos/binsoul/net-mqtt/zipball/286b28e6014739b19e0e7ce0cd5871cdd0cef9b3", 20 | "reference": "286b28e6014739b19e0e7ce0cd5871cdd0cef9b3", 21 | "shasum": "" 22 | }, 23 | "require": { 24 | "php": "~5.6|~7.0" 25 | }, 26 | "require-dev": { 27 | "friendsofphp/php-cs-fixer": "~1.0", 28 | "phpunit/phpunit": "~4.0||~5.0" 29 | }, 30 | "type": "library", 31 | "extra": { 32 | "branch-alias": { 33 | "dev-master": "1.0-dev" 34 | } 35 | }, 36 | "autoload": { 37 | "psr-4": { 38 | "BinSoul\\Net\\Mqtt\\": "src" 39 | } 40 | }, 41 | "notification-url": "https://packagist.org/downloads/", 42 | "license": [ 43 | "MIT" 44 | ], 45 | "authors": [ 46 | { 47 | "name": "Sebastian Mößler", 48 | "email": "code@binsoul.de", 49 | "homepage": "https://github.com/binsoul", 50 | "role": "Developer" 51 | } 52 | ], 53 | "description": "MQTT protocol implementation", 54 | "homepage": "https://github.com/binsoul/net-mqtt", 55 | "keywords": [ 56 | "mqtt", 57 | "net" 58 | ], 59 | "time": "2017-04-03T20:17:02+00:00" 60 | }, 61 | { 62 | "name": "binsoul/net-mqtt-client-react", 63 | "version": "0.3.2", 64 | "source": { 65 | "type": "git", 66 | "url": "https://github.com/binsoul/net-mqtt-client-react.git", 67 | "reference": "6a80fea50e927ebb8bb8a631ea7903c22742ded5" 68 | }, 69 | "dist": { 70 | "type": "zip", 71 | "url": "https://api.github.com/repos/binsoul/net-mqtt-client-react/zipball/6a80fea50e927ebb8bb8a631ea7903c22742ded5", 72 | "reference": "6a80fea50e927ebb8bb8a631ea7903c22742ded5", 73 | "shasum": "" 74 | }, 75 | "require": { 76 | "binsoul/net-mqtt": "~0.2", 77 | "php": "~5.6|~7.0", 78 | "react/promise": "~2.0", 79 | "react/socket": "~0.8" 80 | }, 81 | "require-dev": { 82 | "friendsofphp/php-cs-fixer": "~1.0", 83 | "phpunit/phpunit": "~4.0||~5.0" 84 | }, 85 | "type": "library", 86 | "extra": { 87 | "branch-alias": { 88 | "dev-master": "1.0-dev" 89 | } 90 | }, 91 | "autoload": { 92 | "psr-4": { 93 | "BinSoul\\Net\\Mqtt\\Client\\React\\": "src" 94 | } 95 | }, 96 | "notification-url": "https://packagist.org/downloads/", 97 | "license": [ 98 | "MIT" 99 | ], 100 | "authors": [ 101 | { 102 | "name": "Sebastian Mößler", 103 | "email": "code@binsoul.de", 104 | "homepage": "https://github.com/binsoul", 105 | "role": "Developer" 106 | } 107 | ], 108 | "description": "Asynchronous MQTT client built on React", 109 | "homepage": "https://github.com/binsoul/net-mqtt-client-react", 110 | "keywords": [ 111 | "client", 112 | "mqtt", 113 | "net" 114 | ], 115 | "time": "2017-08-20T08:06:53+00:00" 116 | }, 117 | { 118 | "name": "clue/http-proxy-react", 119 | "version": "v1.2.0", 120 | "source": { 121 | "type": "git", 122 | "url": "https://github.com/clue/php-http-proxy-react.git", 123 | "reference": "06bc84cda43c724edc5b5a19f61452e8094ba99d" 124 | }, 125 | "dist": { 126 | "type": "zip", 127 | "url": "https://api.github.com/repos/clue/php-http-proxy-react/zipball/06bc84cda43c724edc5b5a19f61452e8094ba99d", 128 | "reference": "06bc84cda43c724edc5b5a19f61452e8094ba99d", 129 | "shasum": "" 130 | }, 131 | "require": { 132 | "php": ">=5.3", 133 | "react/promise": " ^2.1 || ^1.2.1", 134 | "react/socket": "^1.0 || ^0.8 || ^0.7.1", 135 | "ringcentral/psr7": "^1.2" 136 | }, 137 | "require-dev": { 138 | "clue/block-react": "^1.1", 139 | "phpunit/phpunit": "^5.0 || ^4.8", 140 | "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3" 141 | }, 142 | "type": "library", 143 | "autoload": { 144 | "psr-4": { 145 | "Clue\\React\\HttpProxy\\": "src/" 146 | } 147 | }, 148 | "notification-url": "https://packagist.org/downloads/", 149 | "license": [ 150 | "MIT" 151 | ], 152 | "authors": [ 153 | { 154 | "name": "Christian Lück", 155 | "email": "christian@lueck.tv" 156 | } 157 | ], 158 | "description": "Async HTTP CONNECT proxy connector, use any TCP/IP protocol through an HTTP proxy server, built on top of ReactPHP", 159 | "homepage": "https://github.com/clue/php-http-proxy-react", 160 | "keywords": [ 161 | "async", 162 | "connect", 163 | "http", 164 | "proxy", 165 | "reactphp" 166 | ], 167 | "time": "2017-08-30T06:47:01+00:00" 168 | }, 169 | { 170 | "name": "clue/socks-react", 171 | "version": "v0.8.7", 172 | "source": { 173 | "type": "git", 174 | "url": "https://github.com/clue/php-socks-react.git", 175 | "reference": "0fcd6f2f506918ff003f1b995c6e78443f26e8ea" 176 | }, 177 | "dist": { 178 | "type": "zip", 179 | "url": "https://api.github.com/repos/clue/php-socks-react/zipball/0fcd6f2f506918ff003f1b995c6e78443f26e8ea", 180 | "reference": "0fcd6f2f506918ff003f1b995c6e78443f26e8ea", 181 | "shasum": "" 182 | }, 183 | "require": { 184 | "evenement/evenement": "~3.0|~1.0|~2.0", 185 | "php": ">=5.3", 186 | "react/promise": "^2.1 || ^1.2", 187 | "react/socket": "^1.0 || ^0.8.6" 188 | }, 189 | "require-dev": { 190 | "clue/block-react": "^1.1", 191 | "clue/connection-manager-extra": "^1.0 || ^0.7", 192 | "phpunit/phpunit": "^6.0 || ^5.7 || ^4.8.35", 193 | "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3" 194 | }, 195 | "type": "library", 196 | "autoload": { 197 | "psr-4": { 198 | "Clue\\React\\Socks\\": "src/" 199 | } 200 | }, 201 | "notification-url": "https://packagist.org/downloads/", 202 | "license": [ 203 | "MIT" 204 | ], 205 | "authors": [ 206 | { 207 | "name": "Christian Lück", 208 | "email": "christian@lueck.tv" 209 | } 210 | ], 211 | "description": "Async SOCKS4, SOCKS4a and SOCKS5 proxy client and server implementation, built on top of ReactPHP", 212 | "homepage": "https://github.com/clue/php-socks-react", 213 | "keywords": [ 214 | "async", 215 | "proxy", 216 | "reactphp", 217 | "socks client", 218 | "socks protocol", 219 | "socks server", 220 | "tcp tunnel" 221 | ], 222 | "time": "2017-12-17T14:47:58+00:00" 223 | }, 224 | { 225 | "name": "corneltek/getoptionkit", 226 | "version": "2.6.0", 227 | "source": { 228 | "type": "git", 229 | "url": "https://github.com/c9s/GetOptionKit.git", 230 | "reference": "995607ddf4fc90ebdb4a7d58fe972d581ad8495f" 231 | }, 232 | "dist": { 233 | "type": "zip", 234 | "url": "https://api.github.com/repos/c9s/GetOptionKit/zipball/995607ddf4fc90ebdb4a7d58fe972d581ad8495f", 235 | "reference": "995607ddf4fc90ebdb4a7d58fe972d581ad8495f", 236 | "shasum": "" 237 | }, 238 | "require": { 239 | "php": ">=5.3.0" 240 | }, 241 | "type": "library", 242 | "extra": { 243 | "branch-alias": { 244 | "dev-master": "2.6.x-dev" 245 | } 246 | }, 247 | "autoload": { 248 | "psr-4": { 249 | "GetOptionKit\\": "src/" 250 | } 251 | }, 252 | "notification-url": "https://packagist.org/downloads/", 253 | "license": [ 254 | "MIT" 255 | ], 256 | "authors": [ 257 | { 258 | "name": "Yo-An Lin", 259 | "email": "yoanlin93@gmail.com" 260 | } 261 | ], 262 | "description": "Powerful command-line option toolkit", 263 | "homepage": "http://github.com/c9s/GetOptionKit", 264 | "time": "2017-06-30T14:54:48+00:00" 265 | }, 266 | { 267 | "name": "evenement/evenement", 268 | "version": "v3.0.1", 269 | "source": { 270 | "type": "git", 271 | "url": "https://github.com/igorw/evenement.git", 272 | "reference": "531bfb9d15f8aa57454f5f0285b18bec903b8fb7" 273 | }, 274 | "dist": { 275 | "type": "zip", 276 | "url": "https://api.github.com/repos/igorw/evenement/zipball/531bfb9d15f8aa57454f5f0285b18bec903b8fb7", 277 | "reference": "531bfb9d15f8aa57454f5f0285b18bec903b8fb7", 278 | "shasum": "" 279 | }, 280 | "require": { 281 | "php": ">=7.0" 282 | }, 283 | "require-dev": { 284 | "phpunit/phpunit": "^6.0" 285 | }, 286 | "type": "library", 287 | "autoload": { 288 | "psr-0": { 289 | "Evenement": "src" 290 | } 291 | }, 292 | "notification-url": "https://packagist.org/downloads/", 293 | "license": [ 294 | "MIT" 295 | ], 296 | "authors": [ 297 | { 298 | "name": "Igor Wiedler", 299 | "email": "igor@wiedler.ch" 300 | } 301 | ], 302 | "description": "Événement is a very simple event dispatching library for PHP", 303 | "keywords": [ 304 | "event-dispatcher", 305 | "event-emitter" 306 | ], 307 | "time": "2017-07-23T21:35:13+00:00" 308 | }, 309 | { 310 | "name": "guzzlehttp/guzzle", 311 | "version": "6.3.0", 312 | "source": { 313 | "type": "git", 314 | "url": "https://github.com/guzzle/guzzle.git", 315 | "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699" 316 | }, 317 | "dist": { 318 | "type": "zip", 319 | "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4db5a78a5ea468d4831de7f0bf9d9415e348699", 320 | "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699", 321 | "shasum": "" 322 | }, 323 | "require": { 324 | "guzzlehttp/promises": "^1.0", 325 | "guzzlehttp/psr7": "^1.4", 326 | "php": ">=5.5" 327 | }, 328 | "require-dev": { 329 | "ext-curl": "*", 330 | "phpunit/phpunit": "^4.0 || ^5.0", 331 | "psr/log": "^1.0" 332 | }, 333 | "suggest": { 334 | "psr/log": "Required for using the Log middleware" 335 | }, 336 | "type": "library", 337 | "extra": { 338 | "branch-alias": { 339 | "dev-master": "6.2-dev" 340 | } 341 | }, 342 | "autoload": { 343 | "files": [ 344 | "src/functions_include.php" 345 | ], 346 | "psr-4": { 347 | "GuzzleHttp\\": "src/" 348 | } 349 | }, 350 | "notification-url": "https://packagist.org/downloads/", 351 | "license": [ 352 | "MIT" 353 | ], 354 | "authors": [ 355 | { 356 | "name": "Michael Dowling", 357 | "email": "mtdowling@gmail.com", 358 | "homepage": "https://github.com/mtdowling" 359 | } 360 | ], 361 | "description": "Guzzle is a PHP HTTP client library", 362 | "homepage": "http://guzzlephp.org/", 363 | "keywords": [ 364 | "client", 365 | "curl", 366 | "framework", 367 | "http", 368 | "http client", 369 | "rest", 370 | "web service" 371 | ], 372 | "time": "2017-06-22T18:50:49+00:00" 373 | }, 374 | { 375 | "name": "guzzlehttp/promises", 376 | "version": "v1.3.1", 377 | "source": { 378 | "type": "git", 379 | "url": "https://github.com/guzzle/promises.git", 380 | "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" 381 | }, 382 | "dist": { 383 | "type": "zip", 384 | "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", 385 | "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", 386 | "shasum": "" 387 | }, 388 | "require": { 389 | "php": ">=5.5.0" 390 | }, 391 | "require-dev": { 392 | "phpunit/phpunit": "^4.0" 393 | }, 394 | "type": "library", 395 | "extra": { 396 | "branch-alias": { 397 | "dev-master": "1.4-dev" 398 | } 399 | }, 400 | "autoload": { 401 | "psr-4": { 402 | "GuzzleHttp\\Promise\\": "src/" 403 | }, 404 | "files": [ 405 | "src/functions_include.php" 406 | ] 407 | }, 408 | "notification-url": "https://packagist.org/downloads/", 409 | "license": [ 410 | "MIT" 411 | ], 412 | "authors": [ 413 | { 414 | "name": "Michael Dowling", 415 | "email": "mtdowling@gmail.com", 416 | "homepage": "https://github.com/mtdowling" 417 | } 418 | ], 419 | "description": "Guzzle promises library", 420 | "keywords": [ 421 | "promise" 422 | ], 423 | "time": "2016-12-20T10:07:11+00:00" 424 | }, 425 | { 426 | "name": "guzzlehttp/psr7", 427 | "version": "1.4.2", 428 | "source": { 429 | "type": "git", 430 | "url": "https://github.com/guzzle/psr7.git", 431 | "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" 432 | }, 433 | "dist": { 434 | "type": "zip", 435 | "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", 436 | "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", 437 | "shasum": "" 438 | }, 439 | "require": { 440 | "php": ">=5.4.0", 441 | "psr/http-message": "~1.0" 442 | }, 443 | "provide": { 444 | "psr/http-message-implementation": "1.0" 445 | }, 446 | "require-dev": { 447 | "phpunit/phpunit": "~4.0" 448 | }, 449 | "type": "library", 450 | "extra": { 451 | "branch-alias": { 452 | "dev-master": "1.4-dev" 453 | } 454 | }, 455 | "autoload": { 456 | "psr-4": { 457 | "GuzzleHttp\\Psr7\\": "src/" 458 | }, 459 | "files": [ 460 | "src/functions_include.php" 461 | ] 462 | }, 463 | "notification-url": "https://packagist.org/downloads/", 464 | "license": [ 465 | "MIT" 466 | ], 467 | "authors": [ 468 | { 469 | "name": "Michael Dowling", 470 | "email": "mtdowling@gmail.com", 471 | "homepage": "https://github.com/mtdowling" 472 | }, 473 | { 474 | "name": "Tobias Schultze", 475 | "homepage": "https://github.com/Tobion" 476 | } 477 | ], 478 | "description": "PSR-7 message implementation that also provides common utility methods", 479 | "keywords": [ 480 | "http", 481 | "message", 482 | "request", 483 | "response", 484 | "stream", 485 | "uri", 486 | "url" 487 | ], 488 | "time": "2017-03-20T17:10:46+00:00" 489 | }, 490 | { 491 | "name": "jeroen-g/flickr", 492 | "version": "v1.1", 493 | "source": { 494 | "type": "git", 495 | "url": "https://github.com/Jeroen-G/Flickr.git", 496 | "reference": "75177dc769cb8db5428dc3008140be6c6e3ae5f0" 497 | }, 498 | "dist": { 499 | "type": "zip", 500 | "url": "https://api.github.com/repos/Jeroen-G/Flickr/zipball/75177dc769cb8db5428dc3008140be6c6e3ae5f0", 501 | "reference": "75177dc769cb8db5428dc3008140be6c6e3ae5f0", 502 | "shasum": "" 503 | }, 504 | "require": { 505 | "guzzlehttp/guzzle": "~6.0" 506 | }, 507 | "require-dev": { 508 | "phpunit/phpunit": "~6.0" 509 | }, 510 | "suggest": { 511 | "illuminate/support": "This package provides a Laravel Service Provider" 512 | }, 513 | "type": "library", 514 | "extra": { 515 | "laravel": { 516 | "providers": [ 517 | "JeroenG\\Flickr\\FlickrServiceProvider" 518 | ], 519 | "aliases": { 520 | "Activity": "JeroenG\\Flickr\\FlickrLaravelFacade" 521 | } 522 | } 523 | }, 524 | "autoload": { 525 | "psr-4": { 526 | "JeroenG\\Flickr\\": "src" 527 | } 528 | }, 529 | "notification-url": "https://packagist.org/downloads/", 530 | "license": [ 531 | "EUPL-1.1" 532 | ], 533 | "authors": [ 534 | { 535 | "name": "JeroenG", 536 | "email": "jeroengjeroeng@gmail.com", 537 | "homepage": "https://github.com/Jeroen-G" 538 | } 539 | ], 540 | "description": "Modern PHP package to make Flickr API calls. Ships with Laravel implementation.", 541 | "homepage": "https://github.com/Jeroen-G/Flickr", 542 | "keywords": [ 543 | "JeroenG", 544 | "api", 545 | "flickr", 546 | "laravel", 547 | "php" 548 | ], 549 | "time": "2017-10-23T12:53:11+00:00" 550 | }, 551 | { 552 | "name": "lazyjsonmapper/lazyjsonmapper", 553 | "version": "v1.6.1", 554 | "source": { 555 | "type": "git", 556 | "url": "https://github.com/SteveJobzniak/LazyJsonMapper.git", 557 | "reference": "f30b4d0b3f416631e3411d66962a55f586d04809" 558 | }, 559 | "dist": { 560 | "type": "zip", 561 | "url": "https://api.github.com/repos/SteveJobzniak/LazyJsonMapper/zipball/f30b4d0b3f416631e3411d66962a55f586d04809", 562 | "reference": "f30b4d0b3f416631e3411d66962a55f586d04809", 563 | "shasum": "" 564 | }, 565 | "require": { 566 | "corneltek/getoptionkit": "2.*", 567 | "php": ">=5.6" 568 | }, 569 | "require-dev": { 570 | "friendsofphp/php-cs-fixer": "^2.7.1", 571 | "phpunit/phpunit": "6.*" 572 | }, 573 | "bin": [ 574 | "bin/lazydoctor" 575 | ], 576 | "type": "library", 577 | "autoload": { 578 | "psr-4": { 579 | "LazyJsonMapper\\": "src/" 580 | } 581 | }, 582 | "notification-url": "https://packagist.org/downloads/", 583 | "license": [ 584 | "Apache-2.0" 585 | ], 586 | "authors": [ 587 | { 588 | "name": "SteveJobzniak", 589 | "homepage": "https://github.com/SteveJobzniak", 590 | "role": "Developer" 591 | } 592 | ], 593 | "description": "Advanced, intelligent & automatic object-oriented JSON containers for PHP.", 594 | "homepage": "https://github.com/SteveJobzniak/LazyJsonMapper", 595 | "keywords": [ 596 | "development", 597 | "json" 598 | ], 599 | "time": "2017-12-02T03:56:54+00:00" 600 | }, 601 | { 602 | "name": "mgp25/instagram-php", 603 | "version": "dev-master", 604 | "source": { 605 | "type": "git", 606 | "url": "https://github.com/mgp25/Instagram-API.git", 607 | "reference": "6c1c6049370f4835efbf31b0b90c1db6ad623166" 608 | }, 609 | "dist": { 610 | "type": "zip", 611 | "url": "https://api.github.com/repos/mgp25/Instagram-API/zipball/6c1c6049370f4835efbf31b0b90c1db6ad623166", 612 | "reference": "6c1c6049370f4835efbf31b0b90c1db6ad623166", 613 | "shasum": "" 614 | }, 615 | "require": { 616 | "binsoul/net-mqtt-client-react": "^0.3.2", 617 | "clue/http-proxy-react": "^1.1.0", 618 | "clue/socks-react": "^0.8.2", 619 | "ext-curl": "*", 620 | "ext-exif": "*", 621 | "ext-gd": "*", 622 | "ext-mbstring": "*", 623 | "ext-zlib": "*", 624 | "guzzlehttp/guzzle": "^6.2", 625 | "lazyjsonmapper/lazyjsonmapper": "^1.6.1", 626 | "php": ">=5.6", 627 | "psr/log": "^1.0", 628 | "react/event-loop": "^0.4.3", 629 | "react/promise": "^2.5", 630 | "react/socket": "^0.8", 631 | "valga/fbns-react": "^0.1.8" 632 | }, 633 | "require-dev": { 634 | "friendsofphp/php-cs-fixer": "^2.8.0", 635 | "monolog/monolog": "^1.23", 636 | "phpunit/phpunit": "^5.7 || ^6.2", 637 | "react/http": "^0.7.2" 638 | }, 639 | "suggest": { 640 | "ext-event": "Installing PHP's native Event extension enables faster Realtime class event handling." 641 | }, 642 | "type": "library", 643 | "autoload": { 644 | "psr-4": { 645 | "InstagramAPI\\": "src/" 646 | } 647 | }, 648 | "notification-url": "https://packagist.org/downloads/", 649 | "license": [ 650 | "RPL-1.5", 651 | "proprietary" 652 | ], 653 | "authors": [ 654 | { 655 | "name": "mgp25", 656 | "email": "me@mgp25.com", 657 | "role": "Founder" 658 | }, 659 | { 660 | "name": "SteveJobzniak", 661 | "homepage": "https://github.com/SteveJobzniak", 662 | "role": "Developer" 663 | } 664 | ], 665 | "description": "Instagram's private API for PHP", 666 | "keywords": [ 667 | "api", 668 | "instagram", 669 | "php", 670 | "private" 671 | ], 672 | "time": "2017-12-19T18:59:37+00:00" 673 | }, 674 | { 675 | "name": "netresearch/jsonmapper", 676 | "version": "v1.4.0", 677 | "source": { 678 | "type": "git", 679 | "url": "https://github.com/cweiske/jsonmapper.git", 680 | "reference": "3868fe1128ce1169228acdb623359dca74db5ef3" 681 | }, 682 | "dist": { 683 | "type": "zip", 684 | "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/3868fe1128ce1169228acdb623359dca74db5ef3", 685 | "reference": "3868fe1128ce1169228acdb623359dca74db5ef3", 686 | "shasum": "" 687 | }, 688 | "require": { 689 | "php": ">=5.6" 690 | }, 691 | "require-dev": { 692 | "phpunit/phpunit": "~4.8.35 || ~5.7 || ~6.4", 693 | "squizlabs/php_codesniffer": "~1.5" 694 | }, 695 | "type": "library", 696 | "autoload": { 697 | "psr-0": { 698 | "JsonMapper": "src/" 699 | } 700 | }, 701 | "notification-url": "https://packagist.org/downloads/", 702 | "license": [ 703 | "OSL-3.0" 704 | ], 705 | "authors": [ 706 | { 707 | "name": "Christian Weiske", 708 | "email": "cweiske@cweiske.de", 709 | "homepage": "http://github.com/cweiske/jsonmapper/", 710 | "role": "Developer" 711 | } 712 | ], 713 | "description": "Map nested JSON structures onto PHP classes", 714 | "time": "2017-11-28T21:30:01+00:00" 715 | }, 716 | { 717 | "name": "psr/http-message", 718 | "version": "1.0.1", 719 | "source": { 720 | "type": "git", 721 | "url": "https://github.com/php-fig/http-message.git", 722 | "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" 723 | }, 724 | "dist": { 725 | "type": "zip", 726 | "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", 727 | "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", 728 | "shasum": "" 729 | }, 730 | "require": { 731 | "php": ">=5.3.0" 732 | }, 733 | "type": "library", 734 | "extra": { 735 | "branch-alias": { 736 | "dev-master": "1.0.x-dev" 737 | } 738 | }, 739 | "autoload": { 740 | "psr-4": { 741 | "Psr\\Http\\Message\\": "src/" 742 | } 743 | }, 744 | "notification-url": "https://packagist.org/downloads/", 745 | "license": [ 746 | "MIT" 747 | ], 748 | "authors": [ 749 | { 750 | "name": "PHP-FIG", 751 | "homepage": "http://www.php-fig.org/" 752 | } 753 | ], 754 | "description": "Common interface for HTTP messages", 755 | "homepage": "https://github.com/php-fig/http-message", 756 | "keywords": [ 757 | "http", 758 | "http-message", 759 | "psr", 760 | "psr-7", 761 | "request", 762 | "response" 763 | ], 764 | "time": "2016-08-06T14:39:51+00:00" 765 | }, 766 | { 767 | "name": "psr/log", 768 | "version": "1.0.2", 769 | "source": { 770 | "type": "git", 771 | "url": "https://github.com/php-fig/log.git", 772 | "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" 773 | }, 774 | "dist": { 775 | "type": "zip", 776 | "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", 777 | "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", 778 | "shasum": "" 779 | }, 780 | "require": { 781 | "php": ">=5.3.0" 782 | }, 783 | "type": "library", 784 | "extra": { 785 | "branch-alias": { 786 | "dev-master": "1.0.x-dev" 787 | } 788 | }, 789 | "autoload": { 790 | "psr-4": { 791 | "Psr\\Log\\": "Psr/Log/" 792 | } 793 | }, 794 | "notification-url": "https://packagist.org/downloads/", 795 | "license": [ 796 | "MIT" 797 | ], 798 | "authors": [ 799 | { 800 | "name": "PHP-FIG", 801 | "homepage": "http://www.php-fig.org/" 802 | } 803 | ], 804 | "description": "Common interface for logging libraries", 805 | "homepage": "https://github.com/php-fig/log", 806 | "keywords": [ 807 | "log", 808 | "psr", 809 | "psr-3" 810 | ], 811 | "time": "2016-10-10T12:19:37+00:00" 812 | }, 813 | { 814 | "name": "react/cache", 815 | "version": "v0.4.2", 816 | "source": { 817 | "type": "git", 818 | "url": "https://github.com/reactphp/cache.git", 819 | "reference": "75494f26b4ef089db9bf8c90b63c296246e099e8" 820 | }, 821 | "dist": { 822 | "type": "zip", 823 | "url": "https://api.github.com/repos/reactphp/cache/zipball/75494f26b4ef089db9bf8c90b63c296246e099e8", 824 | "reference": "75494f26b4ef089db9bf8c90b63c296246e099e8", 825 | "shasum": "" 826 | }, 827 | "require": { 828 | "php": ">=5.3.0", 829 | "react/promise": "~2.0|~1.1" 830 | }, 831 | "require-dev": { 832 | "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" 833 | }, 834 | "type": "library", 835 | "autoload": { 836 | "psr-4": { 837 | "React\\Cache\\": "src/" 838 | } 839 | }, 840 | "notification-url": "https://packagist.org/downloads/", 841 | "license": [ 842 | "MIT" 843 | ], 844 | "description": "Async, Promise-based cache interface for ReactPHP", 845 | "keywords": [ 846 | "cache", 847 | "caching", 848 | "promise", 849 | "reactphp" 850 | ], 851 | "time": "2017-12-20T16:47:13+00:00" 852 | }, 853 | { 854 | "name": "react/dns", 855 | "version": "v0.4.11", 856 | "source": { 857 | "type": "git", 858 | "url": "https://github.com/reactphp/dns.git", 859 | "reference": "8558bba4f2784aa997670d15fc6f7461a8eb4e53" 860 | }, 861 | "dist": { 862 | "type": "zip", 863 | "url": "https://api.github.com/repos/reactphp/dns/zipball/8558bba4f2784aa997670d15fc6f7461a8eb4e53", 864 | "reference": "8558bba4f2784aa997670d15fc6f7461a8eb4e53", 865 | "shasum": "" 866 | }, 867 | "require": { 868 | "php": ">=5.3.0", 869 | "react/cache": "~0.4.0|~0.3.0", 870 | "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", 871 | "react/promise": "^2.1 || ^1.2.1", 872 | "react/promise-timer": "^1.2", 873 | "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5 || ^0.4.4", 874 | "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.5" 875 | }, 876 | "require-dev": { 877 | "clue/block-react": "^1.2", 878 | "phpunit/phpunit": "^5.0 || ^4.8.10" 879 | }, 880 | "type": "library", 881 | "autoload": { 882 | "psr-4": { 883 | "React\\Dns\\": "src" 884 | } 885 | }, 886 | "notification-url": "https://packagist.org/downloads/", 887 | "license": [ 888 | "MIT" 889 | ], 890 | "description": "Async DNS resolver for ReactPHP", 891 | "keywords": [ 892 | "async", 893 | "dns", 894 | "dns-resolver", 895 | "reactphp" 896 | ], 897 | "time": "2017-08-25T08:22:48+00:00" 898 | }, 899 | { 900 | "name": "react/event-loop", 901 | "version": "v0.4.3", 902 | "source": { 903 | "type": "git", 904 | "url": "https://github.com/reactphp/event-loop.git", 905 | "reference": "8bde03488ee897dc6bb3d91e4e17c353f9c5252f" 906 | }, 907 | "dist": { 908 | "type": "zip", 909 | "url": "https://api.github.com/repos/reactphp/event-loop/zipball/8bde03488ee897dc6bb3d91e4e17c353f9c5252f", 910 | "reference": "8bde03488ee897dc6bb3d91e4e17c353f9c5252f", 911 | "shasum": "" 912 | }, 913 | "require": { 914 | "php": ">=5.4.0" 915 | }, 916 | "require-dev": { 917 | "phpunit/phpunit": "~4.8" 918 | }, 919 | "suggest": { 920 | "ext-event": "~1.0", 921 | "ext-libev": "*", 922 | "ext-libevent": ">=0.1.0" 923 | }, 924 | "type": "library", 925 | "autoload": { 926 | "psr-4": { 927 | "React\\EventLoop\\": "src" 928 | } 929 | }, 930 | "notification-url": "https://packagist.org/downloads/", 931 | "license": [ 932 | "MIT" 933 | ], 934 | "description": "Event loop abstraction layer that libraries can use for evented I/O.", 935 | "keywords": [ 936 | "asynchronous", 937 | "event-loop" 938 | ], 939 | "time": "2017-04-27T10:56:23+00:00" 940 | }, 941 | { 942 | "name": "react/promise", 943 | "version": "v2.5.1", 944 | "source": { 945 | "type": "git", 946 | "url": "https://github.com/reactphp/promise.git", 947 | "reference": "62785ae604c8d69725d693eb370e1d67e94c4053" 948 | }, 949 | "dist": { 950 | "type": "zip", 951 | "url": "https://api.github.com/repos/reactphp/promise/zipball/62785ae604c8d69725d693eb370e1d67e94c4053", 952 | "reference": "62785ae604c8d69725d693eb370e1d67e94c4053", 953 | "shasum": "" 954 | }, 955 | "require": { 956 | "php": ">=5.4.0" 957 | }, 958 | "require-dev": { 959 | "phpunit/phpunit": "~4.8" 960 | }, 961 | "type": "library", 962 | "autoload": { 963 | "psr-4": { 964 | "React\\Promise\\": "src/" 965 | }, 966 | "files": [ 967 | "src/functions_include.php" 968 | ] 969 | }, 970 | "notification-url": "https://packagist.org/downloads/", 971 | "license": [ 972 | "MIT" 973 | ], 974 | "authors": [ 975 | { 976 | "name": "Jan Sorgalla", 977 | "email": "jsorgalla@gmail.com" 978 | } 979 | ], 980 | "description": "A lightweight implementation of CommonJS Promises/A for PHP", 981 | "keywords": [ 982 | "promise", 983 | "promises" 984 | ], 985 | "time": "2017-03-25T12:08:31+00:00" 986 | }, 987 | { 988 | "name": "react/promise-timer", 989 | "version": "v1.2.1", 990 | "source": { 991 | "type": "git", 992 | "url": "https://github.com/reactphp/promise-timer.git", 993 | "reference": "9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd" 994 | }, 995 | "dist": { 996 | "type": "zip", 997 | "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd", 998 | "reference": "9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd", 999 | "shasum": "" 1000 | }, 1001 | "require": { 1002 | "php": ">=5.3", 1003 | "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", 1004 | "react/promise": "~2.1|~1.2" 1005 | }, 1006 | "require-dev": { 1007 | "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" 1008 | }, 1009 | "type": "library", 1010 | "autoload": { 1011 | "psr-4": { 1012 | "React\\Promise\\Timer\\": "src/" 1013 | }, 1014 | "files": [ 1015 | "src/functions.php" 1016 | ] 1017 | }, 1018 | "notification-url": "https://packagist.org/downloads/", 1019 | "license": [ 1020 | "MIT" 1021 | ], 1022 | "authors": [ 1023 | { 1024 | "name": "Christian Lück", 1025 | "email": "christian@lueck.tv" 1026 | } 1027 | ], 1028 | "description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.", 1029 | "homepage": "https://github.com/react/promise-timer", 1030 | "keywords": [ 1031 | "async", 1032 | "event-loop", 1033 | "promise", 1034 | "reactphp", 1035 | "timeout", 1036 | "timer" 1037 | ], 1038 | "time": "2017-12-22T15:41:41+00:00" 1039 | }, 1040 | { 1041 | "name": "react/socket", 1042 | "version": "v0.8.7", 1043 | "source": { 1044 | "type": "git", 1045 | "url": "https://github.com/reactphp/socket.git", 1046 | "reference": "49bca29df739f4e288ba2abfed9cac93de1bfff6" 1047 | }, 1048 | "dist": { 1049 | "type": "zip", 1050 | "url": "https://api.github.com/repos/reactphp/socket/zipball/49bca29df739f4e288ba2abfed9cac93de1bfff6", 1051 | "reference": "49bca29df739f4e288ba2abfed9cac93de1bfff6", 1052 | "shasum": "" 1053 | }, 1054 | "require": { 1055 | "evenement/evenement": "^3.0 || ^2.0 || ^1.0", 1056 | "php": ">=5.3.0", 1057 | "react/dns": "^0.4.11", 1058 | "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", 1059 | "react/promise": "^2.1 || ^1.2", 1060 | "react/promise-timer": "~1.0", 1061 | "react/stream": "^1.0 || ^0.7.1" 1062 | }, 1063 | "require-dev": { 1064 | "clue/block-react": "^1.2", 1065 | "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" 1066 | }, 1067 | "type": "library", 1068 | "autoload": { 1069 | "psr-4": { 1070 | "React\\Socket\\": "src" 1071 | } 1072 | }, 1073 | "notification-url": "https://packagist.org/downloads/", 1074 | "license": [ 1075 | "MIT" 1076 | ], 1077 | "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", 1078 | "keywords": [ 1079 | "Connection", 1080 | "Socket", 1081 | "async", 1082 | "reactphp", 1083 | "stream" 1084 | ], 1085 | "time": "2017-12-24T11:28:59+00:00" 1086 | }, 1087 | { 1088 | "name": "react/stream", 1089 | "version": "v0.7.6", 1090 | "source": { 1091 | "type": "git", 1092 | "url": "https://github.com/reactphp/stream.git", 1093 | "reference": "4e07a0014896cbbb73e2f2b2c28e86174b6e1d4d" 1094 | }, 1095 | "dist": { 1096 | "type": "zip", 1097 | "url": "https://api.github.com/repos/reactphp/stream/zipball/4e07a0014896cbbb73e2f2b2c28e86174b6e1d4d", 1098 | "reference": "4e07a0014896cbbb73e2f2b2c28e86174b6e1d4d", 1099 | "shasum": "" 1100 | }, 1101 | "require": { 1102 | "evenement/evenement": "^3.0 || ^2.0 || ^1.0", 1103 | "php": ">=5.3.8", 1104 | "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3" 1105 | }, 1106 | "require-dev": { 1107 | "clue/stream-filter": "~1.2", 1108 | "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" 1109 | }, 1110 | "type": "library", 1111 | "autoload": { 1112 | "psr-4": { 1113 | "React\\Stream\\": "src" 1114 | } 1115 | }, 1116 | "notification-url": "https://packagist.org/downloads/", 1117 | "license": [ 1118 | "MIT" 1119 | ], 1120 | "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", 1121 | "keywords": [ 1122 | "event-driven", 1123 | "io", 1124 | "non-blocking", 1125 | "pipe", 1126 | "reactphp", 1127 | "readable", 1128 | "stream", 1129 | "writable" 1130 | ], 1131 | "time": "2017-12-21T14:12:01+00:00" 1132 | }, 1133 | { 1134 | "name": "ringcentral/psr7", 1135 | "version": "1.2.1", 1136 | "source": { 1137 | "type": "git", 1138 | "url": "https://github.com/ringcentral/psr7.git", 1139 | "reference": "2594fb47cdc659f3fcf0aa1559b7355460555303" 1140 | }, 1141 | "dist": { 1142 | "type": "zip", 1143 | "url": "https://api.github.com/repos/ringcentral/psr7/zipball/2594fb47cdc659f3fcf0aa1559b7355460555303", 1144 | "reference": "2594fb47cdc659f3fcf0aa1559b7355460555303", 1145 | "shasum": "" 1146 | }, 1147 | "require": { 1148 | "php": ">=5.3", 1149 | "psr/http-message": "~1.0" 1150 | }, 1151 | "provide": { 1152 | "psr/http-message-implementation": "1.0" 1153 | }, 1154 | "require-dev": { 1155 | "phpunit/phpunit": "~4.0" 1156 | }, 1157 | "type": "library", 1158 | "extra": { 1159 | "branch-alias": { 1160 | "dev-master": "1.0-dev" 1161 | } 1162 | }, 1163 | "autoload": { 1164 | "psr-4": { 1165 | "RingCentral\\Psr7\\": "src/" 1166 | }, 1167 | "files": [ 1168 | "src/functions_include.php" 1169 | ] 1170 | }, 1171 | "notification-url": "https://packagist.org/downloads/", 1172 | "license": [ 1173 | "MIT" 1174 | ], 1175 | "authors": [ 1176 | { 1177 | "name": "Michael Dowling", 1178 | "email": "mtdowling@gmail.com", 1179 | "homepage": "https://github.com/mtdowling" 1180 | } 1181 | ], 1182 | "description": "PSR-7 message implementation", 1183 | "keywords": [ 1184 | "http", 1185 | "message", 1186 | "stream", 1187 | "uri" 1188 | ], 1189 | "time": "2016-03-25T17:36:49+00:00" 1190 | }, 1191 | { 1192 | "name": "valga/fbns-react", 1193 | "version": "0.1.8", 1194 | "source": { 1195 | "type": "git", 1196 | "url": "https://github.com/valga/fbns-react.git", 1197 | "reference": "4bbf513a8ffed7e0c9ca10776033d34515bb8b37" 1198 | }, 1199 | "dist": { 1200 | "type": "zip", 1201 | "url": "https://api.github.com/repos/valga/fbns-react/zipball/4bbf513a8ffed7e0c9ca10776033d34515bb8b37", 1202 | "reference": "4bbf513a8ffed7e0c9ca10776033d34515bb8b37", 1203 | "shasum": "" 1204 | }, 1205 | "require": { 1206 | "binsoul/net-mqtt": "~0.2", 1207 | "evenement/evenement": "~2.0|~3.0", 1208 | "ext-mbstring": "*", 1209 | "ext-zlib": "*", 1210 | "php": "~5.6|~7.0", 1211 | "psr/log": "~1.0", 1212 | "react/event-loop": "^0.4.3", 1213 | "react/promise": "~2.0", 1214 | "react/socket": "~0.8" 1215 | }, 1216 | "require-dev": { 1217 | "friendsofphp/php-cs-fixer": "~2.4", 1218 | "monolog/monolog": "~1.23" 1219 | }, 1220 | "suggest": { 1221 | "ext-event": "For more efficient event loop implementation.", 1222 | "ext-gmp": "To be able to run this code on x86 PHP builds." 1223 | }, 1224 | "type": "library", 1225 | "autoload": { 1226 | "psr-4": { 1227 | "Fbns\\Client\\": "src/" 1228 | } 1229 | }, 1230 | "notification-url": "https://packagist.org/downloads/", 1231 | "license": [ 1232 | "MIT" 1233 | ], 1234 | "authors": [ 1235 | { 1236 | "name": "Abyr Valg", 1237 | "email": "valga.github@abyrga.ru" 1238 | } 1239 | ], 1240 | "description": "A PHP client for the FBNS built on top of ReactPHP", 1241 | "keywords": [ 1242 | "FBNS", 1243 | "client", 1244 | "php" 1245 | ], 1246 | "time": "2017-10-09T07:54:13+00:00" 1247 | } 1248 | ], 1249 | "packages-dev": [], 1250 | "aliases": [], 1251 | "minimum-stability": "stable", 1252 | "stability-flags": { 1253 | "mgp25/instagram-php": 20 1254 | }, 1255 | "prefer-stable": false, 1256 | "prefer-lowest": false, 1257 | "platform": [], 1258 | "platform-dev": [] 1259 | } 1260 | --------------------------------------------------------------------------------