for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
+------------------------------------------------------------------------+
| Plinker-RPC PHP |
| Copyright (c)2017-2018 (https://github.com/plinker-rpc/core) |
| This source file is subject to MIT License |
| that is bundled with this package in the file LICENSE. |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send an email |
| to [email protected] so we can send you a copy immediately. |
| Authors: Lawrence Cherone <[email protected]> |
*/
// global connect function
namespace {
if (!function_exists('\plinker_client')) {
function plinker_client($url, $secret, $options = [])
{
$options = array_merge([
"secret" => $secret
], $options);
return new \Plinker\Core\Client(
$url,
$options
);
}