RE: [PEAR-DEV] ISBN Proposal
| From: | Lukas Feiler | Date: | Thu, 04 Jan 2007 18:43:00 +0000 |
| Subject: | RE: [PEAR-DEV] ISBN Proposal | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-45415@lists.php.net to get a copy of this message | ||
Hi Tom!
Tom Klingenberg wrote:
>
> hi list,
>
> just uploaded a draft ISBN php class that handles validation,
> conversion
> (that is just in time for 2007-01-01) and the parts of an
> ISBN for ISBN-10
> and ISBN-13. please let me know what you think, wanted to put
> this under
> open source and pear was the first repository i thought about.
>
> so please keep in mind, that i'm completely new to all this
> pear code
> submission stuff.
>
> tom
>
A couple of things I noticed:
- a direct link to the source code would be nice (i.e. to a phps file)
- use single quotes (') instead of double quotes (")
- write your own exception class that extends PEAR_Exception and throw that
- IMHO most of the functionality provided by your package could go into
Validate_ISPN; have you talked to the maintainers of Validate_ISPN?
Cheers,
Lukas