Skip to content

Instantly share code, notes, and snippets.

@marcobrt
marcobrt / class_ScientificNameParser.inc
Last active October 1, 2021 21:16
Singleton PHP class used to keep an instance of gnparser open in streaming mode.
<?php
/*
* MIT License
*
* Copyright (c) 2021 Marco Bortolin
*/
class ScientificNameParser
{
protected static $parser = null;
protected $proc = null;