PHPackages                             phpopencv/installer - 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. phpopencv/installer

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

phpopencv/installer
===================

PHPOpenCV installer.

231PHP

Since Jun 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/phpopencv/installer)[ Packagist](https://packagist.org/packages/phpopencv/installer)[ RSS](/packages/phpopencv-installer/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPOpenCV Installer
===================

[](#phpopencv-installer)

PHPOpenCV Installer是一个简易安装phpopencv扩展，自动检测编译安装opencv并编译php扩展

目录
--

[](#目录)

环境要求
----

[](#环境要求)

- cmake3.5+(编译安装opencv时候需要)
- pkg-config
- Qt5+(编译安装opencv时候需要)
- php7+
- pecl

使用
--

[](#使用)

First, download the PHPOpenCV installer using Composer:

```
composer global require "phpopencv/installer"
```

Make sure to place composer's system-wide vendor bin directory in your `$PATH` so the laravel executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:

- macOS: `$HOME/.composer/vendor/bin`
- GNU / Linux Distributions: `$HOME/.config/composer/vendor/bin`
- Windows: `%USERPROFILE%\AppData\Roaming\Composer\vendor\bin`

修改`/etc/profile`文件

```
vim /etc/profile
```

修改`$PATH`变量

```
export PATH=$HOME/.config/composer/vendor/bin:$PATH
```

更新缓存

```
source /etc/profile
```

Use:

```
phpopencv install
```

操作系统支持
------

[](#操作系统支持)

[![Chrome logo](/images/ubuntu.png)](/images/ubuntu.png)[![Edge logo](/images/centos.jpg)](/images/centos.jpg)16+ ✔7+ ✔

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9750a291603e1f28ce522cb20a021079147e8b24de65837e17fdcf0faf3e2064?d=identicon)[hihozhou](/maintainers/hihozhou)

---

Top Contributors

[![hihozhou](https://avatars.githubusercontent.com/u/12164486?v=4)](https://github.com/hihozhou "hihozhou (22 commits)")

---

Tags

installeropencvphpphp-opencv-installphpopencvphpopencvinstall

### Embed Badge

![Health badge](/badges/phpopencv-installer/health.svg)

```
[![Health](https://phpackages.com/badges/phpopencv-installer/health.svg)](https://phpackages.com/packages/phpopencv-installer)
```

###  Alternatives

[ddd/components

Domain Driven Design components (Slug...).

494.3k](/packages/ddd-components)

PHPackages © 2026

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