2017 © Pedro Peláez
 

library citeproc-php

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

image

academicpuma/citeproc-php

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  • Saturday, March 18, 2017
  • by seboettg
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5,502 Installations
  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 13 % Grown

The README.md

citeproc-php

Latest Stable Version Total Downloads Latest Unstable Version License PHP Build Status, (*1)

Description, (*2)

This is an effort to implement a standalone CSL processor in PHP. This program can be used to render bibliographies using CSL Stylesheets. This repository is a fork of the implementation of rjerome (apparently no longer maintained)., (*3)

Some advantages:, (*4)

  • uses Composer
  • each class is located in a separate file
  • uses namespaces
  • uses the autoloader of Composer
  • uses PHPUnit for testing

Installing citeproc-php using Composer

Use Composer to add citeproc-php to your app:, (*5)

$ composer require academicpuma/citeproc-php

How to use citeproc-php

render(json_decode($data));
?>

Setup a workspace

$ cd /path/to/your/php/workspace
$ hg clone https://seboettg@bitbucket.org/seboettg/citeproc-php
$ composer install

You can setup your apache to see the test results on a webpage. Therefor you can configure your apache with an custom virtual host:, (*6)

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName citeproc.local
        DocumentRoot /path/to/your/php/workspace/citeproc-php/tests
        ErrorLog "/var/log/apache2/citeproc.error.log"
        CustomLog "/var/log/apache2/citeproc.access.log" common

        <Directory /path/to/your/php/workspace/citeproc-php/tests>
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

Replace '/path/to/your/php/workspace/' with your path and replace 'citeproc.local' with your favourite host name., (*7)

If you want to use your own host address don't forget to append them to /etc/hosts:, (*8)

127.0.0.1       citeproc.local localhost

Restart your apache, (*9)

$ sudo apachectl restart

or, (*10)

$ sudo /etc/init.d/apache2 restart

Open your browser and enter your chosen host address, as soon as apache has finished., (*11)

Known packages using citeproc-php

The Versions

18/03 2017

dev-master

9999999-dev

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  Sources   Download

GPL v3

The Requires

 

The Development Requires

18/03 2017

dev-version1.x

dev-version1.x

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  Sources   Download

GPL v3

The Requires

 

The Development Requires

15/09 2015

1.0.0

1.0.0.0

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  Sources   Download

GPL v3

The Requires

 

The Development Requires

08/09 2015

1.0.0-beta5

1.0.0.0-beta5

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  Sources   Download

GPL v3

The Requires

 

The Development Requires

08/09 2015

1.0.0-beta4

1.0.0.0-beta4

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  Sources   Download

GPL v3

The Requires

 

The Development Requires

02/08 2015

1.0.0-beta3

1.0.0.0-beta3

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  Sources   Download

GPL v3

The Requires

  • citation-style-language/styles 1
  • citation-style-language/locales 1

 

The Development Requires

15/06 2015

1.0.0-beta2

1.0.0.0-beta2

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  Sources   Download

GPL v3

The Development Requires

20/01 2015

1.0.0-beta

1.0.0.0-beta

This is an effort to implement a full-featured standalone CSL processor in PHP. The code based on the implementation of Ron Jerome.

  Sources   Download

GPL v3

The Development Requires