cylab / php-bibtex
1.6.0
2023-10-02 07:55 UTC
Requires (Dev)
- phpstan/phpstan: ^1.10.36
- phpunit/phpunit: ^9.6
- slevomat/coding-standard: ^6.4
- squizlabs/php_codesniffer: ^3.5
README
A small PHP lirary for writing bibtex programatically.
Installation
composer require cylab/php-bibtex
Usage
require "vendor/autoload.php";
use Cylab\Bibtex\Article;
$a = new Article();
$a->setTitle("The title of the work")
->setAuthor("Thibault Debatty")
->setJournal("The name of the journal")
->setYear(1993)
->setMonth(7)
->setVolume(4)
->setNote("An optional note")
->setNumber(2)
->setPages("201-213");
echo $a;
Will produce:
@article{thibault-debatty-1993-i6eVEd,
author = {Thibault Debatty},
title = {The title of the work},
journal = {The name of the journal},
year = 1993,
volume = 4,
number = 2,
pages = {201-213},
month = 7,
note = {An optional note}
}