Smartcard and contactless scripting utilities in PHP
This package is a set of PHP extensions and scripts, that can be used to perform any-kind of smartcard related scripting :
Reader or smartcard automated test routines,
Smartcard issuing software for small volume applications,
Smartcard-related application prototyping,
...
Platform
SCardSCR is a PHP4 based project, and for many (good) reasons, it primarly targets Microsoft Windows (Win32/i386).
Author
Johann DANTANT is the author of the PHP4 extensions as well of the supplied PHP scripts. You can contact me by e-mail at . Remarks, comments, and contributions welcome !
Licence
SCardSCR is open-source software and can be freely downloaded / used / distributed according to Gnu General Public Licence.
Content
PHP extensions
PC/SC
The PC/SC API ported to PHP. Allows to call SCardConnect, SCardStatus, SCardTransmit from a PHP script.
DES/3-DES
Provides DES and 3-DES cipher and decipher functions. This allows for example to perform 3-DES 3-passes authentication with a secured smartcard from a PHP3 script.
SpringProx
Gives T=CL access to ISO 14443-A (level 4) cards (Philips SmartMX, Philips Mifare Pro and ProX, Philips Desfire) through Pro-Active USB or serial readers.
PHP scripts
sim.php
Displays the entries in a GSM SIM card phonebook. It works with a GSM SIM card in a PC/SC reader. (You must supply your PIN to browse the phonebook. Be careful not to lock your SIM !)
pcsc_scan.php
Monitors PC/SC readers and display their status each time a smartcard is inserted (or removed). Of course it works with PC/SC readers. atr_analysis gives explanation of cards ATR.
sprox_scan.php
Does almost the same but for ISO 14443-A contactless cards entering the RF field of a Pro-Active SpringProx or CSB reader. More information on Pro-Active products to be found at www.pro-active.fr.
PC/SC and SpringProx classes
Offers an object-oriented reader abstraction layer.
ToDo list
PHP extensions :
Support of Mifare Classic and Mifare UltraLite cards in the SpringProx extension.
Support of ISO 14443-B cards in the SpringProx extension.
Create a "crypto" extension with at least SHA-1 and RSA.
PHP scripts :
VISA card explorer (with balance reader).
French health card explorer (exploration de carte SESAME VITALE).