2017 © Pedro Peláez
 

library pcsc

Library to communicate with PCSC smart-card readers

image

mikk150/pcsc

Library to communicate with PCSC smart-card readers

  • Sunday, February 21, 2016
  • by mikk150
  • Repository
  • 0 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

pcsc for PHP

$context = new mikk150\pcsc\Context;

/**
 * @var mikk150\pcsc\Reader[]
 */
$readers=$context->getReaders();

foreach ($readers as $reader) {
    $reader->onConnect = function (mikk150\pcsc\Connection $connection) {
        echo 'connected'.PHP_EOL;
    };
    $reader->onDisconnect = function (mikk150\pcsc\Connection $connection) {
        echo 'disconnected'.PHP_EOL;
    };
}

while (true) {
    foreach ($readers as $reader) {
        $reader->getConnection();
        //You can use connection here, or you can just use closures to reader
    }
}

The Versions

21/02 2016

dev-master

9999999-dev

Library to communicate with PCSC smart-card readers

  Sources   Download

GPLv2

The Requires

  • php >=5.3.3
  • ext-pc/sc *