Skip to content

Commit f66c5ae

Browse files
committed
Update for PHP8 compatibility; README update.
1 parent 7fb5ca5 commit f66c5ae

File tree

3 files changed

+16
-29
lines changed

3 files changed

+16
-29
lines changed

README.md

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
<h2 id="About">About</h2>
22

3-
<p>This is the only extension for using <a href="http://www.pcscworkgroup.com/" class="ext">PC/SC</a> based smart cards with <a href="http://www.php.net" class="ext">PHP</a>. It is a wrapper to the wonderful and free project by Ludovic Rousseau, <a href="http://pcsclite.alioth.debian.org/" class="ext">PCSC-Lite</a>, which is the middleware to access a smart card using SCard API (PC/SC). Since PCSC-Lite is compatible to the winscard API it should be possible to compile this extension using a Windows(R) operating system. Currently I only take focus on Linux environments.</p>
3+
<p>This is the only extension for using <a href="http://www.pcscworkgroup.com/" class="ext">PC/SC</a> based smart cards with <a href="http://www.php.net" class="ext">PHP</a>. It is a wrapper to the wonderful and free project by Ludovic Rousseau, <a href="https://pcsclite.apdu.fr/" class="ext">PCSC-Lite</a>, which is the middleware to access a smart card using SCard API (PC/SC). Since PCSC-Lite is compatible to the winscard API it should be possible to compile this extension using a Windows or macOS operating system.</p>
44

55
<p>Thanks are going to Johann Dantant! He provides a PC/SC extension for PHP since 2005 and I reused some of his code. He allowed me to relicense these parts under the terms of the PHP license so I could integrate PCSC-Lite natively into PHP.</p>
66

77
<h2 id="Installation">Installation</h2>
88

99
<p>I recommend to install the PECL extension the "PHP" way:</p>
1010

11-
<pre>pecl install pcsc-alpha</pre>
11+
<pre>pecl install pcsc-beta</pre>
1212

13-
<p>You can install the latest version by downloading the sources and compile yourself too... :)</p>
13+
<p>You can install the latest code by downloading the sources and compile yourself too.</p>
1414

15-
<pre>wget http://pecl.php.net/get/pcsc-0.3.1.tgz
16-
tar -xvf pcsc-0.3.1.tgz
17-
cd pcsc-0.3.1
15+
<pre>git clone https://github.com/pcsc-for-php/pcsc.git
16+
cd pcsc
1817
phpize
1918
./configure
2019
make
@@ -76,28 +75,16 @@ make install</pre>
7675

7776
<h3 id="scard_cancel">scard_cancel($context);</h3>
7877

79-
<h2 id="Code">Code</h2>
80-
81-
<p>The code has successful been released to the official code repository <a href="http://pecl.php.net" class="ext">pecl.php.net</a>... ;)
82-
83-
<ul>
84-
<li><a href="http://pecl.php.net/package/pcsc" class="ext">PECL Project Page</a></li>
85-
<li><a href="http://svn.php.net/viewvc/pecl/pcsc/trunk/" class="ext">PHP SVN Code Browser</a></li>
86-
</ul>
87-
88-
<p>You could get the code using the following command:</p>
89-
90-
<pre>svn checkout http://svn.php.net/repository/pecl/pcsc/trunk pcsc</pre>
91-
9278
<h2 id="License">License</h2>
9379

9480
<p>This code is licensed under the terms of the PHP License version 3.01. PCSC-Lite is licensed in a way where it is possible to integrate it native in the PHP environment.</p>
9581

9682
<h2 id="Links">Links</h2>
9783

9884
<ul>
99-
<li><a href="http://www.pcscworkgroup.com/" class="ext">PC/SC Worgroup</a> - Homepage and definition file downloads.</li>
100-
<li><a href="http://en.wikipedia.org/wiki/PC/SC" class="ext">PC/SC</a> - PC/SC at Wikipedia.</li>
101-
<li><a href="http://pcsclite.alioth.debian.org/" class="ext">PC/SC-Lite</a> - The free and open implementation of the PC/SC SCard API for UNIX</li>
102-
<li><a href="http://ludovicrousseau.blogspot.de/2015/01/pcsc-sample-in-php5.html" class="ext">PCSC sample in PHP5</a> - Ludovic Rousseau about "PC/SC for PHP"</li>
85+
<li><a href="http://pecl.php.net/package/pcsc" class="ext">PECL Project Page</a> - Page for package download at PHP.net</li>
86+
<li><a href="http://www.pcscworkgroup.com/" class="ext">PC/SC Worgroup</a> - Homepage and definition file downloads.</li>
87+
<li><a href="http://en.wikipedia.org/wiki/PC/SC" class="ext">PC/SC</a> - PC/SC at Wikipedia.</li>
88+
<li><a href="https://pcsclite.apdu.fr/" class="ext">PC/SC-Lite</a> - The free and open implementation of the PC/SC SCard API for UNIX</li>
89+
<li><a href="http://ludovicrousseau.blogspot.de/2015/01/pcsc-sample-in-php5.html" class="ext">PCSC sample in PHP5</a> - Ludovic Rousseau about "PC/SC for PHP"</li>
10390
</ul>

package.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
66
<name>pcsc</name>
77
<channel>pecl.php.net</channel>
88
<summary>winscard PC/SC API support for PHP</summary>
9-
<description>This is an extension for using PC/SC based smart cards with PHP. It is a wrapper to the winscard API which provides a native interface to smart cards using the PC/SC standard. Both Linux and Windows are supported.
9+
<description>This is an extension for using PC/SC based smart cards with PHP. It is a wrapper to the winscard API which provides a native interface to smart cards using the PC/SC standard. Linux/UNIX and Windows are supported.
1010
</description>
1111
<lead>
1212
<name>Johannes Findeisen</name>
@@ -20,18 +20,18 @@ http://pear.php.net/dtd/package-2.0.xsd">
2020
<email>calvin@cmpct.info</email>
2121
<active>yes</active>
2222
</developer>
23-
<date>2021-02-08</date>
24-
<time>23:22:33</time>
23+
<date>2021-02-20</date>
24+
<time>23:44:26</time>
2525
<version>
26-
<release>0.4.0</release>
26+
<release>0.5.0</release>
2727
<api>0.3.1</api>
2828
</version>
2929
<stability>
3030
<release>beta</release>
3131
<api>stable</api>
3232
</stability>
3333
<license uri="http://www.php.net/license">PHP</license>
34-
<notes>Updated for PHP 7 compatibility.</notes>
34+
<notes>Updated for PHP 8 compatibility.</notes>
3535
<contents>
3636
<dir name="/">
3737
<file name="COPYING" role="doc" />

php_pcsc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
extern zend_module_entry pcsc_module_entry;
55
#define phpext_pcsc_ptr &pcsc_module_entry
66

7-
#define PHP_PCSC_VERSION "0.4.0"
7+
#define PHP_PCSC_VERSION "0.5.0"
88

99
#ifdef PHP_WIN32
1010
#define PHP_PCSC_API __declspec(dllexport)

0 commit comments

Comments
 (0)