Git Product home page Git Product logo

core's Introduction

alt text

Introduction License

Welcome to Core, a module based PHP library. Core is designed to be built on top of and utilized from the ground up. Core is not designed to be a standalone PHP application and will not function as one. Core provides modules for you to use when developing a PHP application, such as a REST API and Web service.

PHP Information

Inorder to use this library or certain functions of PHP, please enable the following in your php.ini file.

// OpenSSL for using HTTPS
extension=php_openssl
// CURL for reading data from URLs
extension=php_curl

Core Configuration

Before you can using any of the Core modules you must load a ConfigAdapter before trying to use them or you will get an Exception or PHP warning/error. And when registering the ConfigAdapter the regName must be config.

The following values must be present in your configuration file because they are utilized by core internally and will throw an Exception if any of them are absent.

array (
    /* ===================================================== */
    /* ==================== CORE VALUES ==================== */
    /* ===================================================== */
    /* ========== GENERAL SUBSECTION ========== */
    // Should php log the errors.
    'logErrors'             => true,
    // The default gmt time zone offset in seconds 'America/Chicago': -21600.
    'defaultTimezoneOffset' => '-21600',
    /* ========== WEB SUBSECTION ========== */
    // This will enable the web / webpage portion of core.
    'useWeb'                => true,
    // Should php display errors on the web page.
    'displayErrors'         => false,
    // The prefix for all cookies created and used by the app (including the ones in the core module).
    'cookiePrefix'          => 'core',
    // The index name for the session.
    'sessionIndex'          => 'cstorage',
    // The name of the session that will be created for the app.
    'sessionName'           => 'core_session',
    // Name of the cookie that will hold the name of the template.
    'templateCookie'        => 'template',
    // Default template style to use.
    'defaultTemplateStyle'  => 'default',
    // Name of the cookie that will hold the name of the skin.
    'skinCookie'            => 'skin',
    // Default skin style to use.
    'defaultSkinStyle'      => 'default',
    /* ========== REST API SUBSECTION ========== */
    // This will enable the api portion of core.
    'useApi'                => true,
);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.