PHPackages                             bojian/picture-process - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bojian/picture-process

ActiveLibrary

bojian/picture-process
======================

picture process screenshot、watermark.

v1.0.2(2y ago)02Apache-2.0JavaScriptPHP &gt;=7.2

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bojian-li/picture-process)[ Packagist](https://packagist.org/packages/bojian/picture-process)[ Docs](https://github.com/bojian-li/picture-process)[ RSS](/packages/bojian-picture-process/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

picture-process
===============

[](#picture-process)

picture process package

### Installation

[](#installation)

运行环境要求 PHP 7.2 及以上版本，以及[cURL](http://php.net/manual/zh/book.curl.php)。

#### 灵活配置环境

[](#灵活配置环境)

特点：`html截图`封装在composer包内，定期更新

> composer require bojian/picture-process

#### AliyunClient图片处理调用

[](#aliyunclient图片处理调用)

.env配置，alifc\_url为阿里云图片处理服务地址

```
[aliyun]
alifc_url =
```

```
$version = aliyunPictureClient('version');
```

#### phantomjs图片处理调用

[](#phantomjs图片处理调用)

.env配置；按照机器安装位置配置

```
[phantomjs]
;phantomjs的安装路径「compose包中用macosx、linux 64、linux 32、windows运行包在phantomjs文件夹下解压安装本地即可」
phantomjs_path = /Users/libojian/bojian-github/picture-process/phantomjs/macosx-2.1.1/bin/phantomjs
;截图js存放路径
screenshot_path = /Users/libojian/bojian-github/picture-process/extend/exec/screenshot.js
;图片存放路径
picture_path = /Users/libojian/bojian-github/picture-process/screenshot/
```

```
$params = [
    'screenshot_url' => 'https://poster-test.uhomes.com/groupBuying/shareMerchants',
    'width' => 360,
    'height' => 288,
    'ext_param' => [
        'showType' => 3,
        'coverImg' => 'https://img.uhzcdn.com/testing/ugc/customer/80/460bfc6d9af8a739a3ed18e4ee796269a09316.png',
    ],
    'unset_picture' => true, //是否删除生成图片 false-不删除 true-删除 默认:false
];

$imageBase64 = phantomjsPictureClient('screenshot', $params);
```

#### 附加图片处理功能

[](#附加图片处理功能)

```
use bojian\pictureProcess\extend\Helper;

//图片转base64
$imgBase64 = Helper::imgToBase64($filePath);

//自定义图片cdn域名
$imageUrl = getImagePath($imagePath)

/**
 * 是否以开头
 * @param      $haystack      //The string to search in
 * @param      $needle        //Note that the needle may be a string of one or more characters
 * @param bool $caseSensitive 大小写敏感 true敏感 false不敏感
 * @return bool
 */
startWith($haystack, $needle, bool $caseSensitive = true)
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1028d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/203892975cf9ce24c822d022e028d6c3e96bf674a23c58375256b93068adb6ea?d=identicon)[bojian-li](/maintainers/bojian-li)

---

Top Contributors

[![bojian69](https://avatars.githubusercontent.com/u/34238232?v=4)](https://github.com/bojian69 "bojian69 (1 commits)")

---

Tags

sdkpicture-process

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/bojian-picture-process/health.svg)

```
[![Health](https://phpackages.com/badges/bojian-picture-process/health.svg)](https://phpackages.com/packages/bojian-picture-process)
```

###  Alternatives

[aws/aws-crt-php

AWS Common Runtime for PHP

416300.1M4](/packages/aws-aws-crt-php)[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
