# CiteProc-PHP

**URL:** <https://discourse.citationstyles.org/t/citeproc-php/418>\
**Category:** CSL Development\
**Created:** [January 30, 2008, 5:06pm UTC](https://discourse.citationstyles.org/t/citeproc-php/418 "2008-01-30T17:06:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerome\_Ron](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@Jerome\_Ron](https://discourse.citationstyles.org/u/Jerome_Ron)\
**Post date:** [January 30, 2008, 5:06pm UTC](https://discourse.citationstyles.org/t/citeproc-php/418/1 "2008-01-30T17:06:34Z")

</div>

Hello,

I was wondering if anyone knew if there has ever been any development of  
CiteProc in PHP? If no I would like make an attempt at this and am  
looking for a starting point. Would it make sense to try to port the  
JavaScript, Ruby or Python versions?

Thanks,\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Ron Jerome  
Programmer/Analyst  
National Research Council Canada  
M-2, 1200 Montreal Road, Ottawa, Ontario K1A 0R6  
Government of Canada  
Phone: 613-993-5346  
FAX: 613-941-1571

* * *

---

<div class="post-metadata">

**Author:** ![Bruce\_D\_Arcus1](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bruce\_D\_Arcus1](https://discourse.citationstyles.org/u/Bruce_D_Arcus1)\
**Post date:** [January 30, 2008, 5:34pm UTC](https://discourse.citationstyles.org/t/citeproc-php/418/2 "2008-01-30T17:34:19Z")

</div>

Hi Ron,

Jerome, Ron wrote:

> I was wondering if anyone knew if there has ever been any development of  
> CiteProc in PHP?

Not that I know of, but it’s on obvious hole that ought to be filled.

> If no I would like make an attempt at this …

Great!

> and am looking for a starting point. Would it make sense to try to port the  
> JavaScript, Ruby or Python versions?

The Javascript version at Zotero is the most complete, so I’d guess it  
would make sense to start from there. So I’d start there, and with the  
csl schema in SVN.

I would also take a look at the recent work on the Ruby version by Liam.  
I know he’s not done, but he’s probably far enough along to at least  
give you some ideas. And he’s been saying he’s going to come back to it,  
so may have something to say about coding approaches and such.

It might be good to note again that it’d be nice if we could develop  
some test cases that can help with this sort of development.

Finally, if you want to host the code here, send me your user name  
off-list and I can add you as a developer. Obviously if you have any  
questions as you go, feel free to post them here.

Bruce

---

<div class="post-metadata">

**Author:** ![Dan\_Stillman](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@Dan\_Stillman](https://discourse.citationstyles.org/u/Dan_Stillman)\
**Post date:** [January 30, 2008, 6:38pm UTC](https://discourse.citationstyles.org/t/citeproc-php/418/3 "2008-01-30T18:38:49Z")

</div>

JS is also probably the easiest to port to PHP, since the syntax is  
pretty similar. A lot can even be done with [regexp] search-and-replace.

We (Zotero) would be very interested in a PHP port.

---

<div class="post-metadata">

**Author:** ![Jerome\_Ron](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@Jerome\_Ron](https://discourse.citationstyles.org/u/Jerome_Ron)\
**Post date:** [January 30, 2008, 7:55pm UTC](https://discourse.citationstyles.org/t/citeproc-php/418/4 "2008-01-30T19:55:46Z")

</div>

Ok, I’ll poke away at this a bit and see what happens. No promises at  
this point as to if/when there will be a finished product, but as the  
author of the biblio module for Drupal ([http://drupal.org/project/biblio](http://drupal.org/project/biblio)  
), I do have an interest in making it work.

If/when I have any useful code to share I get in touch and we can post  
it with the rest of the xbiblio code.

Ron.

> From: [xbiblio-devel-bounces@lists.sourceforge.net](mailto:xbiblio-devel-bounces@lists.sourceforge.net) [mailto:xbiblio-  
> [devel-bounces@lists.sourceforge.net](mailto:devel-bounces@lists.sourceforge.net)] On Behalf Of Bruce D’Arcus  
> Sent: January 30, 2008 12:34 PM  
> To: development discussion for xbiblio  
> Subject: Re: [xbiblio-devel] CiteProc-PHP
> 
> Hi Ron,
> 
> Jerome, Ron wrote:
> 
> > I was wondering if anyone knew if there has ever been any  
> > development\> -----Original Message-----  
> > of  
> > CiteProc in PHP?
> 
> Not that I know of, but it’s on obvious hole that ought to be filled.
> 
> > If no I would like make an attempt at this …
> 
> Great!
> 
> > and am looking for a starting point. Would it make sense to try to  
> > port the  
> > JavaScript, Ruby or Python versions?
> 
> The Javascript version at Zotero is the most complete, so I’d guess it  
> would make sense to start from there. So I’d start there, and with the  
> csl schema in SVN.
> 
> I would also take a look at the recent work on the Ruby version by  
> Liam.  
> I know he’s not done, but he’s probably far enough along to at least  
> give you some ideas. And he’s been saying he’s going to come back to  
> it,  
> so may have something to say about coding approaches and such.
> 
> It might be good to note again that it’d be nice if we could develop  
> some test cases that can help with this sort of development.
> 
> Finally, if you want to host the code here, send me your user name  
> off-list and I can add you as a developer. Obviously if you have any  
> questions as you go, feel free to post them here.
> 
> Bruce

* * *

---

<div class="post-metadata">

**Author:** ![Bruce\_D\_Arcus1](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bruce\_D\_Arcus1](https://discourse.citationstyles.org/u/Bruce_D_Arcus1)\
**Post date:** [January 30, 2008, 11:05pm UTC](https://discourse.citationstyles.org/t/citeproc-php/418/5 "2008-01-30T23:05:13Z")

</div>

OK, sounds good. Good luck.

Bruce

---

<div class="post-metadata">

**Author:** ![Liam\_Magee](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Liam\_Magee](https://discourse.citationstyles.org/u/Liam_Magee)\
**Post date:** [January 30, 2008, 11:29pm UTC](https://discourse.citationstyles.org/t/citeproc-php/418/6 "2008-01-30T23:29:32Z")

</div>

I would strongly recommend starting with the JavaScript version over the  
Ruby one. I do have every intention of completing the Ruby port in the  
near future, but at the moment it is in an incomplete state. Best of luck.

Regards,

Liam.

Bruce D’Arcus wrote:
