00f100/phpuphar
Advanced tools
| bin/* | ||
| vendor/* |
| { | ||
| "name": "00f100/phpuphar", | ||
| "type": "library", | ||
| "version": "0.6.0", | ||
| "description": "Library to self update your phar file", | ||
| "keywords": ["self", "update", "phar", "php"], | ||
| "homepage": "https://github.com/00f100/phpuphar", | ||
| "authors": [ | ||
| { | ||
| "name": "João Moraes", | ||
| "email": "joaomoraesbr@gmail.com", | ||
| "homepage": "https://github.com/00f100" | ||
| } | ||
| ], | ||
| "require": { | ||
| "php": ">=5.5", | ||
| "guzzlehttp/guzzle": "6.*" | ||
| }, | ||
| "require-dev": { | ||
| "00f100/phpdbug": "*" | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "PHPUPhar\\": "src/" | ||
| } | ||
| } | ||
| } |
| { | ||
| "_readme": [ | ||
| "This file locks the dependencies of your project to a known state", | ||
| "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", | ||
| "This file is @generated automatically" | ||
| ], | ||
| "hash": "3cfc5430058d60452b4b7d1e50a82018", | ||
| "content-hash": "db24ae43e6f8c6399ec045fd9097cc40", | ||
| "packages": [ | ||
| { | ||
| "name": "guzzlehttp/guzzle", | ||
| "version": "6.2.1", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/guzzle/guzzle.git", | ||
| "reference": "3f808fba627f2c5b69e2501217bf31af349c1427" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/guzzle/guzzle/zipball/3f808fba627f2c5b69e2501217bf31af349c1427", | ||
| "reference": "3f808fba627f2c5b69e2501217bf31af349c1427", | ||
| "shasum": "" | ||
| }, | ||
| "require": { | ||
| "guzzlehttp/promises": "^1.0", | ||
| "guzzlehttp/psr7": "^1.3.1", | ||
| "php": ">=5.5" | ||
| }, | ||
| "require-dev": { | ||
| "ext-curl": "*", | ||
| "phpunit/phpunit": "^4.0", | ||
| "psr/log": "^1.0" | ||
| }, | ||
| "type": "library", | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "6.2-dev" | ||
| } | ||
| }, | ||
| "autoload": { | ||
| "files": [ | ||
| "src/functions_include.php" | ||
| ], | ||
| "psr-4": { | ||
| "GuzzleHttp\\": "src/" | ||
| } | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "authors": [ | ||
| { | ||
| "name": "Michael Dowling", | ||
| "email": "mtdowling@gmail.com", | ||
| "homepage": "https://github.com/mtdowling" | ||
| } | ||
| ], | ||
| "description": "Guzzle is a PHP HTTP client library", | ||
| "homepage": "http://guzzlephp.org/", | ||
| "keywords": [ | ||
| "client", | ||
| "curl", | ||
| "framework", | ||
| "http", | ||
| "http client", | ||
| "rest", | ||
| "web service" | ||
| ], | ||
| "time": "2016-07-15 17:22:37" | ||
| }, | ||
| { | ||
| "name": "guzzlehttp/promises", | ||
| "version": "1.2.0", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/guzzle/promises.git", | ||
| "reference": "c10d860e2a9595f8883527fa0021c7da9e65f579" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/guzzle/promises/zipball/c10d860e2a9595f8883527fa0021c7da9e65f579", | ||
| "reference": "c10d860e2a9595f8883527fa0021c7da9e65f579", | ||
| "shasum": "" | ||
| }, | ||
| "require": { | ||
| "php": ">=5.5.0" | ||
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "~4.0" | ||
| }, | ||
| "type": "library", | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "1.0-dev" | ||
| } | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "GuzzleHttp\\Promise\\": "src/" | ||
| }, | ||
| "files": [ | ||
| "src/functions_include.php" | ||
| ] | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "authors": [ | ||
| { | ||
| "name": "Michael Dowling", | ||
| "email": "mtdowling@gmail.com", | ||
| "homepage": "https://github.com/mtdowling" | ||
| } | ||
| ], | ||
| "description": "Guzzle promises library", | ||
| "keywords": [ | ||
| "promise" | ||
| ], | ||
| "time": "2016-05-18 16:56:05" | ||
| }, | ||
| { | ||
| "name": "guzzlehttp/psr7", | ||
| "version": "1.3.1", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/guzzle/psr7.git", | ||
| "reference": "5c6447c9df362e8f8093bda8f5d8873fe5c7f65b" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/guzzle/psr7/zipball/5c6447c9df362e8f8093bda8f5d8873fe5c7f65b", | ||
| "reference": "5c6447c9df362e8f8093bda8f5d8873fe5c7f65b", | ||
| "shasum": "" | ||
| }, | ||
| "require": { | ||
| "php": ">=5.4.0", | ||
| "psr/http-message": "~1.0" | ||
| }, | ||
| "provide": { | ||
| "psr/http-message-implementation": "1.0" | ||
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "~4.0" | ||
| }, | ||
| "type": "library", | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "1.4-dev" | ||
| } | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "GuzzleHttp\\Psr7\\": "src/" | ||
| }, | ||
| "files": [ | ||
| "src/functions_include.php" | ||
| ] | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "authors": [ | ||
| { | ||
| "name": "Michael Dowling", | ||
| "email": "mtdowling@gmail.com", | ||
| "homepage": "https://github.com/mtdowling" | ||
| } | ||
| ], | ||
| "description": "PSR-7 message implementation", | ||
| "keywords": [ | ||
| "http", | ||
| "message", | ||
| "stream", | ||
| "uri" | ||
| ], | ||
| "time": "2016-06-24 23:00:38" | ||
| }, | ||
| { | ||
| "name": "psr/http-message", | ||
| "version": "1.0.1", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/php-fig/http-message.git", | ||
| "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", | ||
| "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", | ||
| "shasum": "" | ||
| }, | ||
| "require": { | ||
| "php": ">=5.3.0" | ||
| }, | ||
| "type": "library", | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "1.0.x-dev" | ||
| } | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "Psr\\Http\\Message\\": "src/" | ||
| } | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "authors": [ | ||
| { | ||
| "name": "PHP-FIG", | ||
| "homepage": "http://www.php-fig.org/" | ||
| } | ||
| ], | ||
| "description": "Common interface for HTTP messages", | ||
| "homepage": "https://github.com/php-fig/http-message", | ||
| "keywords": [ | ||
| "http", | ||
| "http-message", | ||
| "psr", | ||
| "psr-7", | ||
| "request", | ||
| "response" | ||
| ], | ||
| "time": "2016-08-06 14:39:51" | ||
| } | ||
| ], | ||
| "packages-dev": [ | ||
| { | ||
| "name": "00f100/phpdbug", | ||
| "version": "0.2.0", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/00F100/phpdbug.git", | ||
| "reference": "c9b78b36481b91bdb0ea958ec1cbdb0f4b7f6e86" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/00F100/phpdbug/zipball/c9b78b36481b91bdb0ea958ec1cbdb0f4b7f6e86", | ||
| "reference": "c9b78b36481b91bdb0ea958ec1cbdb0f4b7f6e86", | ||
| "shasum": "" | ||
| }, | ||
| "type": "package", | ||
| "autoload": { | ||
| "files": [ | ||
| "src/functions.php" | ||
| ], | ||
| "psr-4": { | ||
| "PHPdbug\\": "src/" | ||
| } | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "authors": [ | ||
| { | ||
| "name": "João Moraes", | ||
| "email": "joaomoraesbr@gmail.com", | ||
| "homepage": "https://github.com/00f100" | ||
| } | ||
| ], | ||
| "description": "Package to debug everything in PHP", | ||
| "homepage": "https://github.com/00f100/phpdbug", | ||
| "keywords": [ | ||
| "denbug", | ||
| "php" | ||
| ], | ||
| "time": "2016-09-06 23:55:16" | ||
| } | ||
| ], | ||
| "aliases": [], | ||
| "minimum-stability": "stable", | ||
| "stability-flags": [], | ||
| "prefer-stable": false, | ||
| "prefer-lowest": false, | ||
| "platform": { | ||
| "php": ">=5.5" | ||
| }, | ||
| "platform-dev": [] | ||
| } |
| MIT License | ||
| Copyright (c) 2016 João Moraes | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
| # phpupdatephar |
| <?php | ||
| namespace PHPUPhar { | ||
| use Phar; | ||
| use GuzzleHttp\Client; | ||
| use Exception; | ||
| class PHPUPhar | ||
| { | ||
| private $urlVersion; | ||
| private $onlyCheck; | ||
| private $versionNow; | ||
| private $urlDownload; | ||
| private $version = false; | ||
| public function __construct(array $urlVersion, $onlyCheck, $versionNow = null, $urlDownload = null, $pharFileName = null) | ||
| { | ||
| $this->urlVersion = $urlVersion; | ||
| $this->onlyCheck = $onlyCheck; | ||
| $this->versionNow = trim(str_replace('.', '', $versionNow)); | ||
| $this->urlDownload = $urlDownload; | ||
| $this->pharFileName = $pharFileName; | ||
| } | ||
| public function getVersion() | ||
| { | ||
| if (!$this->version) { | ||
| $this->version = $this->getLastVersion(); | ||
| } | ||
| return $this->version; | ||
| } | ||
| public function update() | ||
| { | ||
| $lastVersion = str_replace('.', '', $this->getVersion()); | ||
| if ($lastVersion != str_replace('.', '', $this->versionNow)) { | ||
| return $this->updatePhar(); | ||
| } | ||
| return false; | ||
| } | ||
| private function updatePhar() | ||
| { | ||
| $pharFile = str_replace($_SERVER['argv'][0], '', Phar::running(false)) . '/' . $this->pharFileName; | ||
| try { | ||
| $client = new Client(); | ||
| $response = $client->request('GET', $this->urlDownload); | ||
| $body = $response->getBody(); | ||
| $phar = array(); | ||
| while (!$body->eof()) { | ||
| $phar[] = $body->read(10240); | ||
| } | ||
| if(is_file($pharFile)){ | ||
| unlink($pharFile); | ||
| } | ||
| if(is_file($pharFile . '.gz')){ | ||
| unlink($pharFile . '.gz'); | ||
| } | ||
| $phar = implode($phar); | ||
| $fopen = fopen($pharFile, 'w'); | ||
| fwrite($fopen, $phar); | ||
| fclose($fopen); | ||
| copy($pharFile, $this->pharFileName); | ||
| return true; | ||
| } catch (Exception $e) { | ||
| } | ||
| return false; | ||
| } | ||
| private function getLastVersion() | ||
| { | ||
| $client = new Client([ | ||
| 'base_uri' => $this->urlVersion['base'], | ||
| 'timeout' => 10, | ||
| 'allow_redirects' => false, | ||
| ]); | ||
| try { | ||
| $response = $client->request('GET', $this->urlVersion['path']); | ||
| } catch(Exception $e){ | ||
| return false; | ||
| } | ||
| $body = $response->getBody(); | ||
| $version = array(); | ||
| while (!$body->eof()) { | ||
| $version[] = $body->read(1024); | ||
| } | ||
| return trim(implode($version)); | ||
| } | ||
| } | ||
| } |
| bin/* | ||
| vendor/* |
| { | ||
| "name": "00f100/phpuphar", | ||
| "type": "library", | ||
| "version": "0.1.0", | ||
| "description": "Library to self update your phar file", | ||
| "keywords": ["self", "update", "phar", "php"], | ||
| "homepage": "https://github.com/00f100/phpuphar", | ||
| "authors": [ | ||
| { | ||
| "name": "João Moraes", | ||
| "email": "joaomoraesbr@gmail.com", | ||
| "homepage": "https://github.com/00f100" | ||
| } | ||
| ], | ||
| "require": { | ||
| "php": ">=5.5", | ||
| "guzzlehttp/guzzle": "6.*" | ||
| }, | ||
| "require-dev": { | ||
| "00f100/phpdbug": "*" | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "PHPUPhar\\": "src/" | ||
| } | ||
| } | ||
| } |
| { | ||
| "_readme": [ | ||
| "This file locks the dependencies of your project to a known state", | ||
| "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", | ||
| "This file is @generated automatically" | ||
| ], | ||
| "hash": "3cfc5430058d60452b4b7d1e50a82018", | ||
| "content-hash": "db24ae43e6f8c6399ec045fd9097cc40", | ||
| "packages": [ | ||
| { | ||
| "name": "guzzlehttp/guzzle", | ||
| "version": "6.2.1", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/guzzle/guzzle.git", | ||
| "reference": "3f808fba627f2c5b69e2501217bf31af349c1427" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/guzzle/guzzle/zipball/3f808fba627f2c5b69e2501217bf31af349c1427", | ||
| "reference": "3f808fba627f2c5b69e2501217bf31af349c1427", | ||
| "shasum": "" | ||
| }, | ||
| "require": { | ||
| "guzzlehttp/promises": "^1.0", | ||
| "guzzlehttp/psr7": "^1.3.1", | ||
| "php": ">=5.5" | ||
| }, | ||
| "require-dev": { | ||
| "ext-curl": "*", | ||
| "phpunit/phpunit": "^4.0", | ||
| "psr/log": "^1.0" | ||
| }, | ||
| "type": "library", | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "6.2-dev" | ||
| } | ||
| }, | ||
| "autoload": { | ||
| "files": [ | ||
| "src/functions_include.php" | ||
| ], | ||
| "psr-4": { | ||
| "GuzzleHttp\\": "src/" | ||
| } | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "authors": [ | ||
| { | ||
| "name": "Michael Dowling", | ||
| "email": "mtdowling@gmail.com", | ||
| "homepage": "https://github.com/mtdowling" | ||
| } | ||
| ], | ||
| "description": "Guzzle is a PHP HTTP client library", | ||
| "homepage": "http://guzzlephp.org/", | ||
| "keywords": [ | ||
| "client", | ||
| "curl", | ||
| "framework", | ||
| "http", | ||
| "http client", | ||
| "rest", | ||
| "web service" | ||
| ], | ||
| "time": "2016-07-15 17:22:37" | ||
| }, | ||
| { | ||
| "name": "guzzlehttp/promises", | ||
| "version": "1.2.0", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/guzzle/promises.git", | ||
| "reference": "c10d860e2a9595f8883527fa0021c7da9e65f579" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/guzzle/promises/zipball/c10d860e2a9595f8883527fa0021c7da9e65f579", | ||
| "reference": "c10d860e2a9595f8883527fa0021c7da9e65f579", | ||
| "shasum": "" | ||
| }, | ||
| "require": { | ||
| "php": ">=5.5.0" | ||
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "~4.0" | ||
| }, | ||
| "type": "library", | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "1.0-dev" | ||
| } | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "GuzzleHttp\\Promise\\": "src/" | ||
| }, | ||
| "files": [ | ||
| "src/functions_include.php" | ||
| ] | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "authors": [ | ||
| { | ||
| "name": "Michael Dowling", | ||
| "email": "mtdowling@gmail.com", | ||
| "homepage": "https://github.com/mtdowling" | ||
| } | ||
| ], | ||
| "description": "Guzzle promises library", | ||
| "keywords": [ | ||
| "promise" | ||
| ], | ||
| "time": "2016-05-18 16:56:05" | ||
| }, | ||
| { | ||
| "name": "guzzlehttp/psr7", | ||
| "version": "1.3.1", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/guzzle/psr7.git", | ||
| "reference": "5c6447c9df362e8f8093bda8f5d8873fe5c7f65b" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/guzzle/psr7/zipball/5c6447c9df362e8f8093bda8f5d8873fe5c7f65b", | ||
| "reference": "5c6447c9df362e8f8093bda8f5d8873fe5c7f65b", | ||
| "shasum": "" | ||
| }, | ||
| "require": { | ||
| "php": ">=5.4.0", | ||
| "psr/http-message": "~1.0" | ||
| }, | ||
| "provide": { | ||
| "psr/http-message-implementation": "1.0" | ||
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "~4.0" | ||
| }, | ||
| "type": "library", | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "1.4-dev" | ||
| } | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "GuzzleHttp\\Psr7\\": "src/" | ||
| }, | ||
| "files": [ | ||
| "src/functions_include.php" | ||
| ] | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "authors": [ | ||
| { | ||
| "name": "Michael Dowling", | ||
| "email": "mtdowling@gmail.com", | ||
| "homepage": "https://github.com/mtdowling" | ||
| } | ||
| ], | ||
| "description": "PSR-7 message implementation", | ||
| "keywords": [ | ||
| "http", | ||
| "message", | ||
| "stream", | ||
| "uri" | ||
| ], | ||
| "time": "2016-06-24 23:00:38" | ||
| }, | ||
| { | ||
| "name": "psr/http-message", | ||
| "version": "1.0.1", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/php-fig/http-message.git", | ||
| "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", | ||
| "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", | ||
| "shasum": "" | ||
| }, | ||
| "require": { | ||
| "php": ">=5.3.0" | ||
| }, | ||
| "type": "library", | ||
| "extra": { | ||
| "branch-alias": { | ||
| "dev-master": "1.0.x-dev" | ||
| } | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "Psr\\Http\\Message\\": "src/" | ||
| } | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "authors": [ | ||
| { | ||
| "name": "PHP-FIG", | ||
| "homepage": "http://www.php-fig.org/" | ||
| } | ||
| ], | ||
| "description": "Common interface for HTTP messages", | ||
| "homepage": "https://github.com/php-fig/http-message", | ||
| "keywords": [ | ||
| "http", | ||
| "http-message", | ||
| "psr", | ||
| "psr-7", | ||
| "request", | ||
| "response" | ||
| ], | ||
| "time": "2016-08-06 14:39:51" | ||
| } | ||
| ], | ||
| "packages-dev": [ | ||
| { | ||
| "name": "00f100/phpdbug", | ||
| "version": "0.2.0", | ||
| "source": { | ||
| "type": "git", | ||
| "url": "https://github.com/00F100/phpdbug.git", | ||
| "reference": "c9b78b36481b91bdb0ea958ec1cbdb0f4b7f6e86" | ||
| }, | ||
| "dist": { | ||
| "type": "zip", | ||
| "url": "https://api.github.com/repos/00F100/phpdbug/zipball/c9b78b36481b91bdb0ea958ec1cbdb0f4b7f6e86", | ||
| "reference": "c9b78b36481b91bdb0ea958ec1cbdb0f4b7f6e86", | ||
| "shasum": "" | ||
| }, | ||
| "type": "package", | ||
| "autoload": { | ||
| "files": [ | ||
| "src/functions.php" | ||
| ], | ||
| "psr-4": { | ||
| "PHPdbug\\": "src/" | ||
| } | ||
| }, | ||
| "notification-url": "https://packagist.org/downloads/", | ||
| "authors": [ | ||
| { | ||
| "name": "João Moraes", | ||
| "email": "joaomoraesbr@gmail.com", | ||
| "homepage": "https://github.com/00f100" | ||
| } | ||
| ], | ||
| "description": "Package to debug everything in PHP", | ||
| "homepage": "https://github.com/00f100/phpdbug", | ||
| "keywords": [ | ||
| "denbug", | ||
| "php" | ||
| ], | ||
| "time": "2016-09-06 23:55:16" | ||
| } | ||
| ], | ||
| "aliases": [], | ||
| "minimum-stability": "stable", | ||
| "stability-flags": [], | ||
| "prefer-stable": false, | ||
| "prefer-lowest": false, | ||
| "platform": { | ||
| "php": ">=5.5" | ||
| }, | ||
| "platform-dev": [] | ||
| } |
| MIT License | ||
| Copyright (c) 2016 João Moraes | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
| # phpupdatephar |
| <?php | ||
| namespace PHPUPhar { | ||
| class PHPUPhar | ||
| { | ||
| } | ||
| } |