GithubHelp home page GithubHelp logo

clinicsys-core's Introduction

Clinicsys-Core

- This is just programming task from *EraaSoft_Learning_Center_Task* 

Dependency for Clinicsys Application

Features

  • Routes Managment
  • MySQL API
  • Config From External Env File
  • Bultin URI managment (Paths , URLs and Redirect)
  • Bultin Validation functions (Text , Password , Email)
  • Include Whoops Error Managment
  • Include Smarty Template Engine

Installation

The preferred way to install this extension is through composer .

run from your Terminal

composer require clinicsys/core

Usage

add env.json into your root directory add these configuration , change it as your system require

{
    "DATABASE":{
        "HOST": "localhost",
        "USER": "root",
        "PASSWORD": "",
        "DATABASE": "db",
        "PORT":3306
    },
    "VALIDATION":{
        "TEXT_FIELD_REQUIRE":true,
        "TEXT_MIN_LENGTH":3,
        "TEXT_MAX_LENGTH":20,
        "PASSWORD_MIN_LENGTH": 8, 
        "PASSWORD_MAX_LENGTH": 20
    }
}

to use Whoops add to your index.php add :

<?php
require('vendor/autoload.php');

$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();

for creating routes :

Route::Get('/' , ['Controller' , 'method' ], ['arg1','arg2']);

1st parameter = the request URI

2nd parameter = Controller is your target class name and method is the method you want to run

3ed parameter = the arguments you want to pass into method

clinicsys-core's People

Contributors

khaledfathi avatar

Watchers

James Cloos avatar  avatar

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.