Файловый менеджер - Редактировать - /home/clickysoft/public_html/jmapi5.clickysoft.net/intervention.zip
Назад
PK \>�ZZ���� � image/provides.jsonnu �[��� { "providers": [ "Intervention\\Image\\ImageServiceProvider" ], "aliases": [ { "alias": "Image", "facade": "Intervention\\Image\\Facades\\Image" } ] } PK \>�Z��b� � image/composer.jsonnu �[��� { "name": "intervention/image", "description": "Image handling and manipulation library with support for Laravel integration", "homepage": "http://image.intervention.io/", "keywords": ["image", "gd", "imagick", "laravel", "watermark", "thumbnail"], "license": "MIT", "authors": [ { "name": "Oliver Vogel", "email": "oliver@intervention.io", "homepage": "https://intervention.io/" } ], "require": { "php": ">=5.4.0", "ext-fileinfo": "*", "guzzlehttp/psr7": "~1.1 || ^2.0" }, "require-dev": { "phpunit/phpunit": "^4.8 || ^5.7 || ^7.5.15", "mockery/mockery": "~0.9.2" }, "suggest": { "ext-gd": "to use GD library based image processing.", "ext-imagick": "to use Imagick based image processing.", "intervention/imagecache": "Caching extension for the Intervention Image library" }, "autoload": { "psr-4": { "Intervention\\Image\\": "src/Intervention/Image" } }, "extra": { "branch-alias": { "dev-master": "2.4-dev" }, "laravel": { "providers": [ "Intervention\\Image\\ImageServiceProvider" ], "aliases": { "Image": "Intervention\\Image\\Facades\\Image" } } }, "minimum-stability": "stable" } PK \>�Z�:�� � 3 image/src/Intervention/Image/ImageManagerStatic.phpnu �[��� <?php namespace Intervention\Image; use Closure; class ImageManagerStatic { /** * Instance of Intervention\Image\ImageManager * * @var ImageManager */ public static $manager; /** * Creates a new instance * * @param ImageManager $manager */ public function __construct(ImageManager $manager = null) { self::$manager = $manager ? $manager : new ImageManager; } /** * Get or create new ImageManager instance * * @return ImageManager */ public static function getManager() { return self::$manager ? self::$manager : new ImageManager; } /** * Statically create new custom configured image manager * * @param array $config * * @return ImageManager */ public static function configure(array $config = []) { return self::$manager = self::getManager()->configure($config); } /** * Statically initiates an Image instance from different input types * * @param mixed $data * * @return \Intervention\Image\Image * @throws \Intervention\Image\Exception\NotReadableException */ public static function make($data) { return self::getManager()->make($data); } /** * Statically creates an empty image canvas * * @param int $width * @param int $height * @param mixed $background * * @return \Intervention\Image\Image */ public static function canvas($width, $height, $background = null) { return self::getManager()->canvas($width, $height, $background); } /** * Create new cached image and run callback statically * * @param Closure $callback * @param int $lifetime * @param boolean $returnObj * * @return mixed */ public static function cache(Closure $callback, $lifetime = null, $returnObj = false) { return self::getManager()->cache($callback, $lifetime, $returnObj); } } PK \>�Z�e�s s - image/src/Intervention/Image/ImageManager.phpnu �[��� <?php namespace Intervention\Image; use Closure; use Intervention\Image\Exception\MissingDependencyException; use Intervention\Image\Exception\NotSupportedException; class ImageManager { /** * Config * * @var array */ public $config = [ 'driver' => 'gd' ]; /** * Creates new instance of Image Manager * * @param array $config */ public function __construct(array $config = []) { $this->checkRequirements(); $this->configure($config); } /** * Overrides configuration settings * * @param array $config * * @return self */ public function configure(array $config = []) { $this->config = array_replace($this->config, $config); return $this; } /** * Initiates an Image instance from different input types * * @param mixed $data * * @return \Intervention\Image\Image */ public function make($data) { return $this->createDriver()->init($data); } /** * Creates an empty image canvas * * @param int $width * @param int $height * @param mixed $background * * @return \Intervention\Image\Image */ public function canvas($width, $height, $background = null) { return $this->createDriver()->newImage($width, $height, $background); } /** * Create new cached image and run callback * (requires additional package intervention/imagecache) * * @param Closure $callback * @param int $lifetime * @param boolean $returnObj * * @return Image */ public function cache(Closure $callback, $lifetime = null, $returnObj = false) { if (class_exists('Intervention\\Image\\ImageCache')) { // create imagecache $imagecache = new ImageCache($this); // run callback if (is_callable($callback)) { $callback($imagecache); } return $imagecache->get($lifetime, $returnObj); } throw new MissingDependencyException( "Please install package intervention/imagecache before running this function." ); } /** * Creates a driver instance according to config settings * * @return \Intervention\Image\AbstractDriver */ private function createDriver() { if (is_string($this->config['driver'])) { $drivername = ucfirst($this->config['driver']); $driverclass = sprintf('Intervention\\Image\\%s\\Driver', $drivername); if (class_exists($driverclass)) { return new $driverclass; } throw new NotSupportedException( "Driver ({$drivername}) could not be instantiated." ); } if ($this->config['driver'] instanceof AbstractDriver) { return $this->config['driver']; } throw new NotSupportedException( "Unknown driver type." ); } /** * Check if all requirements are available * * @return void */ private function checkRequirements() { if ( ! function_exists('finfo_buffer')) { throw new MissingDependencyException( "PHP Fileinfo extension must be installed/enabled to use Intervention Image." ); } } } PK \>�Z*䬿 � B image/src/Intervention/Image/ImageServiceProviderLaravelRecent.phpnu �[��� <?php namespace Intervention\Image; use Illuminate\Support\ServiceProvider; class ImageServiceProviderLaravelRecent extends ServiceProvider { /** * Determines if Intervention Imagecache is installed * * @return boolean */ private function cacheIsInstalled() { return class_exists('Intervention\\Image\\ImageCache'); } /** * Bootstrap the application events. * * @return void */ public function boot() { $this->publishes([ __DIR__.'/../../config/config.php' => config_path('image.php') ]); // setup intervention/imagecache if package is installed $this->cacheIsInstalled() ? $this->bootstrapImageCache() : null; } /** * Register the service provider. * * @return void */ public function register() { $app = $this->app; // merge default config $this->mergeConfigFrom( __DIR__.'/../../config/config.php', 'image' ); // create image $app->singleton('image', function ($app) { return new ImageManager($this->getImageConfig($app)); }); $app->alias('image', 'Intervention\Image\ImageManager'); } /** * Bootstrap imagecache * * @return void */ protected function bootstrapImageCache() { $app = $this->app; $config = __DIR__.'/../../../../imagecache/src/config/config.php'; $this->publishes([ $config => config_path('imagecache.php') ]); // merge default config $this->mergeConfigFrom( $config, 'imagecache' ); // imagecache route if (is_string(config('imagecache.route'))) { $filename_pattern = '[ \w\\.\\/\\-\\@\(\)\=]+'; // route to access template applied image file $app['router']->get(config('imagecache.route').'/{template}/{filename}', [ 'uses' => 'Intervention\Image\ImageCacheController@getResponse', 'as' => 'imagecache' ])->where(['filename' => $filename_pattern]); } } /** * Return image configuration as array * * @param Application $app * @return array */ private function getImageConfig($app) { $config = $app['config']->get('image'); if (is_null($config)) { return []; } return $config; } } PK \>�Z��I . image/src/Intervention/Image/Facades/Image.phpnu �[��� <?php namespace Intervention\Image\Facades; use Illuminate\Support\Facades\Facade; /** * @method static \Intervention\Image\Image make(mixed $data) * @method static self configure(array $config) * @method static \Intervention\Image\Image canvas(int $width, int $height, mixed $background = null) * @method static \Intervention\Image\Image cache(\Closure $callback, int $lifetime = null, boolean $returnObj = false) */ class Image extends Facade { protected static function getFacadeAccessor() { return 'image'; } } PK \>�Zw ~D}O }O &