PHPackages                             blue-nest-cloud/bnc-canvas - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. blue-nest-cloud/bnc-canvas

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

blue-nest-cloud/bnc-canvas
==========================

Canvas package

v1.0.0(5y ago)07MITPHPPHP &gt;=7.1.0

Since Jun 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Jzh-thub/bnc-canvas)[ Packagist](https://packagist.org/packages/blue-nest-cloud/bnc-canvas)[ RSS](/packages/blue-nest-cloud-bnc-canvas/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

bnc-canvas
==========

[](#bnc-canvas)

安装
--

[](#安装)

> composer require blue-nest-cloud/bnc-canvas

配置
--

[](#配置)

> 配置字体文件位于 `public/system/font/Alibaba-PuHuiTi-Regular.otf`

### 使用方式

[](#使用方式)

> 为了适应框架 放置canvas 生成 目录 需要自己创建

### 例子

[](#例子)

```
clss Index{

    public function index($data){
       $canvas = \bnc\canvas\Canvas::instance();
        $path = __DIR__;
        $imageType = 'jpg';
        $name = 'follow';
        $imageUrl = $path . $name . '.' . $imageType;
        $canvas->setImageUrl('https://car3.autoimg.cn/cardfs/selected/520/g24/M06/26/59/520x390_0_q95_autohomecar__ChwFjmB2xPuAKUbhAARK65kPon0502.jpg')->setImageHeight(720)->setImageWidth(500)->pushImageValue();
        $canvas->setImageUrl('https://img.cnmo.com/1843/1842270.jpg')->setImageHeight(344)->setImageWidth(344)->setImageLeft(76)->setImageTop(76)->pushImageValue();
        $canvas->setFontPath('https://info.chinahc.wang/Alibaba-PuHuiTi-Regular.otf')->setFontText('本次二维码认证有效过期时间为:')->setFontSize(12)->setFontTop(45)->setFontLeft(40)->setFontColor('255,255,255')->pushFontValue();
        $image = $canvas->setFileName($name)->setImageType($imageType)->setPath($path)->setBackgroundWidth(500)->setBackgroundHeight(720)->starDrawChart();
    }

}

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

1841d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18be0a4a9d7b5cab20e5f886d8c9a3e1362b5188f6e4c625db8895e7091bc0e5?d=identicon)[Jzh-thub](/maintainers/Jzh-thub)

---

Top Contributors

[![Jzh-thub](https://avatars.githubusercontent.com/u/74651570?v=4)](https://github.com/Jzh-thub "Jzh-thub (2 commits)")

### Embed Badge

![Health badge](/badges/blue-nest-cloud-bnc-canvas/health.svg)

```
[![Health](https://phpackages.com/badges/blue-nest-cloud-bnc-canvas/health.svg)](https://phpackages.com/packages/blue-nest-cloud-bnc-canvas)
```

###  Alternatives

[vkartaviy/retry

The library for repeatable and retryable operations

29231.3k2](/packages/vkartaviy-retry)[jakewhiteley/php-sets

An implementation of a Java-like Set data structure for PHP. A Set is an iterable data structure which allows strict-type storage of unique values.

1828.5k](/packages/jakewhiteley-php-sets)

PHPackages © 2026

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