Skip to content

Instantly share code, notes, and snippets.

View sj-i's full-sized avatar

sji sj-i

View GitHub Profile
@sj-i
sj-i / nfc-cardreader-example-written-in-php.php
Last active October 13, 2021 19:30 — forked from m3m0r7/nfc-cardreader-example-written-in-php.php
Example for using libnfc with written in PHP
<?php
/**
* Merged
* - https://github.com/nfc-tools/libnfc/blob/master/libnfc/nfc-internal.h
* - https://github.com/nfc-tools/libnfc/blob/2b5ad9ce0be19fbca5abc04b4ee0b59fb612e590/include/nfc/nfc-types.h
*
* @license https://github.com/nfc-tools/libnfc/blob/master/COPYING
*/
$ffi = FFI::cdef(<<<_
/**