Skip to content

Instantly share code, notes, and snippets.

View ropali's full-sized avatar
🎯

ropali

🎯
View GitHub Profile
<?php
namespace Restserver\Libraries;
use Exception;
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Format class
* Help convert between various formats such as XML, JSON, CSV, etc.
*
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| HTTP protocol
|--------------------------------------------------------------------------
|
| Set to force the use of HTTPS for REST API calls
<?php
namespace Restserver\Libraries;
use CI_Controller;
use Exception;
use stdClass;
defined('BASEPATH') OR exit('No direct script access allowed');
/**
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
include './vendor/autoload.php';
class File_parser {
// Automatically detects file formate and parse the text
public function parseText($file)