This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class BungieClient ... really quick and dirty way. | |
*/ | |
class BungieClient | |
{ | |
/** | |
* @var array | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class FontMeta based on several stackoverflow answers. | |
* | |
* @method string getCopyright() | |
* @method string getFontFamily() | |
* @method string getFontSubFamily() | |
* @method string getFontIdentifier() | |
* @method string getFontName() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class OsmMapParser | |
{ | |
const TYPE_NODE = 'node'; | |
const TYPE_WAY = 'way'; | |
const TYPE_RELATION = 'relation'; | |
private $source; | |
private $target; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class OsmNodeParser | |
{ | |
private $spl; | |
private $current; | |
private $isOpen = false; | |
private $hasQuery = false; | |
private $nodes = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Process any number of cURL requests in parallel, but limit | |
* the number of simultaneous requests to $parallel. | |
* | |
* @param array $urls Array with URLs to process | |
* @param int $parallel Number of concurrent requests | |
* @param array $extraOptions User defined CURLOPTS | |
* @return array[] | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @inherits ArrayAccess, IteratorAggregate, Countable from Collection | |
* @author neun | |
* @since 12.10.2015 22:24 | |
*/ | |
class OrderAggregate extends Collection | |
{ | |
/** | |
* @var Order |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author neun | |
* @since 28.09.2015 20:16 | |
*/ | |
if (PHP_SAPI == 'cli') { | |
if (3 > count($argv)) { | |
print_r(" bake:[type] [name] [property1,property2,...]\n repo\t : Creates new repository". | |
"\n model\t : Creates new model\n [bake:model User id,name,email,created,updated,deleted]"); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace MonoQuery; | |
/** | |
* Uber simple single table query builder. | |
* | |
* @author neun | |
* @since 27.09.2015 15:35 | |
*/ | |
class Query | |
{ | |
private $table; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Retrieves data and curl connection info for an array of one or more urls | |
* using curl_multi_*. Input order & array key equal output order & array key. | |
* Returns 2-dimensional array containing url data & curl info. | |
* @param array $urls | |
* @return array $res | |
*/ | |
function multicurl($urls) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author nimmneun | |
* @since 02.07.2015 22:31 | |
*/ | |
class CsvReader | |
{ | |
private $delimiter; | |
private $enclosure; | |
private $escape; |
NewerOlder