This file contains 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 defined('BASEPATH') || exit('Access Denied'); | |
/** | |
* Library for a JSON Web Token implementation based on the JWT Spec | |
* | |
* @category Libraries | |
* @author Jason Napolitano <[email protected]> | |
* @updated 10.11.2018 | |
* | |
* @license 2-clause BSD |
This file contains 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 defined('BASEPATH') || exit('No direct script access allowed'); | |
/** | |
* -------------------------------------------------------------------------- | |
* Application Specific Constants | |
* -------------------------------------------------------------------------- | |
* | |
* The following constants are application specific. They cover items such as | |
* writable path values, HTTP status codes and more! | |
* | |
* @package Constants |
This file contains 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 | |
/** | |
* ---------------------------------------------------------------------------- | |
* The Autoload Library is a PSR-4 compatible utility class that assists in | |
* loading of package classmaps and namespaces. Run Autoload::register() to | |
* instantiate | |
* | |
* @author Jason Napolitano <[email protected]> | |
* @link https://www.php-fig.org/psr/psr-4/ |
This file contains 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 | |
// Import LogLevel Class | |
use \Psr\Log\LogLevel; | |
/** | |
* ---------------------------------------------------------------------------- | |
* The Logger Library Class is a utility class that assists in the | |
* logging application of activity. | |
* |
This file contains 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 | |
/** | |
* Environment-specific configuration. This class was extracted directly from the CodeIgniter 4 | |
* framework and upgraded to use features from PHP >=8.0.0 | |
* | |
* | |
* @link https://github.com/codeigniter4/CodeIgniter4/blob/develop/system/Config/DotEnv.php | |
*/ | |
class DotEnv |
This file contains 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 | |
/** | |
* A facade class for the Core Router Module. Used to make routed calls using | |
* more practical and simple invocations for each Route. | |
* | |
* @author Jason Napolitano <[email protected]> | |
* @license MIT | |
*/ | |
abstract class RouteHandler |
This file contains 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 | |
/** | |
* ------------------------------------------------------------------------ | |
* The Session Library Class is a utility wrapper class that assists in the | |
* handling of sessions in PHP applications. We achieve this by creating an | |
* abstraction between the developer and PHP's native session library. Thus | |
* providing a factory that can manufacture, modify and manage session data | |
* ------------------------------------------------------------------------ | |
* |
This file contains 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
{ | |
"$schema": "https://json.schemastore.org/prettierrc", | |
"arrowParens": "always", | |
"bracketSpacing": true, | |
"endOfLine": "lf", | |
"jsxBracketSameLine": false, | |
"printWidth": 80, | |
"proseWrap": "preserve", | |
"requirePragma": false, | |
"semi": false, |
This file contains 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 Str | |
{ | |
/** @var array|string[] $plural Array of pluralized words */ | |
private static array $plural = [ | |
'/(quiz)$/i' => "$1zes", | |
'/^(ox)$/i' => "$1en", | |
'/([m|l])ouse$/i' => "$1ice", | |
'/(matr|vert|ind)ix|ex$/i' => "$1ices", |
This file contains 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
/** | |
* A simple, yet effective PDO wrapper class | |
* | |
* @author Jason Napolitano | |
* @license MIT | |
* | |
* @see https://www.php.net/manual/en/class.pdostatement.php | |
* @see https://www.php.net/manual/en/class.pdo.php | |
*/ | |
final class Database |