What is libnfc-for-php?
This library is a toy for me. You can read NFC with libnfc written in PHP.
Requirements
- PHP 7.4 or later
- PHP FFI
- libnfc
Supported
- PaSoRi RC-S330
Warning
- PaSoRi RC-S380 is not supported the libnfc. I have a roadmap to implement RC-S380.
- It is required to develop a driver. For example, the nfcpy has been implemented.
Quick start
Mac
- Install libnfc
$ brew install libnfc
- Install this library
$ composer require m3m0r7/libnfc-for-php
- Connect NFC Device into your machine.
- Run example code
$ php examples/nfc-poll-1.php
- Put your NFC
- You can get output.
License
- MIT