承接 simexis/webthumb 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

simexis/webthumb

最新稳定版本:2.0.0

Composer 安装命令:

composer require simexis/webthumb

包简介

README 文档

README

This is a library for PHP to take a screen shot using PhantomJS.

It is easy specification of only have Exec the phantomjs command in the middle.

Webthumb Class for Laravel 5.3

Requirements

  • Laravel 5.3
  • php 5.6+

Installation

Step 1: Install package using Composer
composer require simexis/webthumb

Step 2: Laravel 5.5+

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

Simexis\Webthumb\WebthumbServiceProvider::class,

Usage

Default configuration is:

$cfg = [
	'local_cache_dir'	=>	public_path() . "/thumbs", //relative cache directory must exists in install directory and rwx permissions to all (777)
	'phantom_js_root'	=> __DIR__ . '/../lib/phantomjs', //Path to the root directory phantom_js

	'encoding'			=>		"png", // jpg or png
	'bwidth'			=>		"1280", // browser width
	'bheight'			=>		"1024" // browser height only for mode=screen
];

Basic example

echo \Webthumb::setUrl('http://google.com')->save($save_path);
echo (new \Webthumb)
		->setURL('http://google.com')
        ->setScreenWidth('1024')
        ->setScreenHeight('768')
		->save($save_path);

统计信息

  • 总下载量: 167
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-06-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固