Commit db71bca7 by Camoo Sarl

VERSION.txt and LICENSE added

parent 734c08fe
The MIT License (MIT)
Copyright (c) 2017 CAMOO SARL
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
......@@ -17,7 +17,7 @@ Quick Examples
1) Get available general info about destination msisdn
```php
require_once('src/autoload.php');
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
// set api_key and secret_key
$oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b9798479494984');
......
////////////////////////////////////////////////////////////////////////////////////////////////////
// +--------------------------------------------------------------------------------------------+ //
// CAMOO/Airtime Version
//
// Holds a static string representing the current version of CAMOO/Airtime
//
// Copyright Copyright (c) CAMOO SARL (http://camoo.cm)
//
// Licensed under The MIT License
// Redistributions of files must retain the above copyright notice.
//
// @copyright Copyright (c) CAMOO SARL (http://camoo.cm)
// @link http://camoo.cm
// @license http://www.opensource.org/licenses/mit-license.php MIT License
// +--------------------------------------------------------------------------------------------+ //
////////////////////////////////////////////////////////////////////////////////////////////////////
2.0.3
<?php
require_once('src/autoload.php');
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
$oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b9798479494984');
// set transaction Id
......
<?php
require_once('src/autoload.php');
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
$oBalance = new \CAMOO\Balance\Balance('592595095gh57', '4e32da5979879b89479847b9798479494984');
......
<?php
require_once('src/autoload.php');
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
$oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b9798479494984');
// receiver recipient
......
<?php
require_once('src/autoload.php');
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
$oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b9798479494984');
// receiver recipient
......
<?php
require_once('src/autoload.php');
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
$oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b9798479494984');
// receiver recipient
......
<?php
require_once('src/autoload.php');
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
$oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b9798479494984');
// receiver recipient
......
<?php
require_once('src/autoload.php');
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
$oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b9798479494984');
......
......@@ -14,11 +14,9 @@ namespace CAMOO\Authentifications;
* @link http://www.camoo.cm
*/
require_once(CAMOO_ROOT_SRC_DIR .'vendor/autoload.php');
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer\Hmac\Sha256;
/**
* Class Token
*
......
......@@ -13,7 +13,6 @@ namespace CAMOO\HttpClients;
*
* @link http://www.camoo.cm
*/
require_once( CAMOO_ROOT_SRC_DIR .'vendor/autoload.php');
use GuzzleHttp\Exception\RequestException;
use CAMOO\Exceptions\HttpClientException;
......
......@@ -4,8 +4,4 @@
*
*/
if (is_file('src/autoload.php')) {
require_once 'src/autoload.php';
} else {
require_once dirname(__DIR__) . '/src/autoload.php';
}
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment