PHPackages                             m3m0r7/php-libusb - 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. m3m0r7/php-libusb

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

m3m0r7/php-libusb
=================

0.0.1(2y ago)1141MITPHP

Since Mar 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/m3m0r7/php-libusb)[ Packagist](https://packagist.org/packages/m3m0r7/php-libusb)[ RSS](/packages/m3m0r7-php-libusb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (1)

php-libusb
==========

[](#php-libusb)

What is this?
-------------

[](#what-is-this)

This project is wrapping the libusb with PHP. The libusb is written in C and bridge to it via PHP FFI. *This project is experimental project*.

Requirements
------------

[](#requirements)

- PHP 8.3+
- libusb

Prepare
-------

[](#prepare)

### macOS

[](#macos)

1. Install libusb via brew if you use macOS

```
$ brew install libusb

```

2. You will get dynamic library is here:

```
/opt/homebrew/Cellar/libusb//lib/libusb-.dylib

```

3. You will get header file is here:

```
/opt/homebrew/Cellar/libusb//include/libusb-/libusb.h

```

### Windows

[](#windows)

TBD

### Ubuntu

[](#ubuntu)

TBD

Get started
-----------

[](#get-started)

### Quick start

[](#quick-start)

1. Install this library

```
$ composer require m3m0r7/php-libusb

```

2. Write below code quick start code and save as `test.php`

```
