Re: Lowercase or camelcase function names?
| From: | Hannes | Date: | Sun, 06 Nov 2011 23:35:39 +0000 |
| Subject: | Re: Lowercase or camelcase function names? | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8815@lists.php.net to get a copy of this message | ||
Hello Johannes,
you didn't answer my question... CamelCase or not?? ;) But anyway, thank
you for your quick reply. :D
I have some code available[1] but since it is a very early stage of
development I didn't wanted to tell you already but you provoked me to
do it now... ;)
The code is based on an extension by Johann Dantant called SCardSCR[2].
My project is found on my personal website[3]. Johann allowed me to
relicense his code unter the terms of the PHP license, so I want
to use this license!
I really would like to use PHP's version control infrastructure in the
future. And I really would provide docs in XML format!
I am happy that you support this idea. I have the code running here
since last year and now I am actively doing smart card development
again. I did this for about two years but since around one year I have
done other stuff. The code works nice on my notebook and I am very fast
in writing prototypes for smart card communication using PHP.
Johannes
[1] http://code.google.com/p/pcsc-for-php/
[2] http://www.waazaa.org/johann.d/scardscr/
[3] http://hanez.org/pcsc-for-php.html
On Mon, 07 Nov 2011 00:15:47 +0100
Johannes Schlüter <johannes@schlueters.de> wrote:
> Hi,
>
> do you already have some code to show? What license are you planning to
> use for your code? (PCSC-Lite's license seems to be compatible with
> PHP's license) We suggest PHP license 3.01.
>
> Also: Do you plan to use PHP's version control infrastructure (currently
> subversion, will move to git soon)? Would you also be willing to provide
> docs in docbook xml format for inclusion in the PHP manual?
>
> All that aside: In general I'd support it. :-)
>
> johannes
>
> On Sun, 2011-11-06 at 23:54 +0100, Johannes wrote:
> > Dear developers,
> >
> > I am currently writing an extension for Smart Card communication from
> > within PHP. It uses the PC/SC API and currently I primary take focus on
> > Linux based operating systems using PCSC-Lite[1], but that should not
> > become a problem...
> >
> > The PC/SC API is defined very exactly[2] and uses camelcase definition
> > for function names. For example to connect to a Smart Card the function
> > "SCardConnect" is beeing executed. Is it it a good idea to use the
> > same notation in the function name in a PECL extension? I
> > prefer to call it "scard_connect"...
> >
> > You know how to handle this... ;) What should I do?
> >
> > Thank you very much and regards,
> > Johannes
> >
> > [1] http://pcsclite.alioth.debian.org/pcsclite.html
> > [2] http://www.pcscworkgroup.com/
> >
>
>
--
Johannes Findeisen <mailman@hanez.org>