phpopencv/installer

PHPOpenCV installer.

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/phpopencv/installer

dev-master 2019-06-25 14:54 UTC

This package is not auto-updated.

Last update: 2025-10-19 08:55:47 UTC


README

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 Edge logo
16+ ✔ 7+ ✔