Skip to content

Instantly share code, notes, and snippets.

@treehousetim
treehousetim / TextTable.php
Last active April 18, 2019 21:04 — forked from dapepe/TextTable.php
Class to generate a Markdown-style table from a PHP array
<?php
//https://gist.github.com/dapepe/9956717
/**
* Creates a markdown document based on the parsed documentation
*
* @author Peter-Christoph Haider <peter.haider@zeyon.net>
* @package Apidoc
* @version 1.00 (2014-04-04)
* @license GNU Lesser Public License
*/
@treehousetim
treehousetim / soapTimeout.php
Created August 20, 2012 18:56 — forked from RobThree/SoapClientTimeout.class.php
PHP SoapClient with timeout
<?
// https://gist.github.com/gists/3406693
// Drop-in replacement for PHP's SoapClient class supporting connect and response/transfer timeout
// Usage: Exactly as PHP's SoapClient class, except that 3 new options are available:
// timeout The response/transfer timeout in milliseconds; 0 == default SoapClient / CURL timeout
// connecttimeout The connection timeout; 0 == default SoapClient / CURL timeout
// sslverifypeer FALSE to stop SoapClient from verifying the peer's certificate
// 2012-08-20 - treehousetim added an additional option to support xignite.com api key auth