Coder Social home page Coder Social logo

casexe-php's Introduction

Casexe PHP 7.0

  • PHP 7.0
  • MySQL 5.7
  • Apache 2.4
  • PDO
  • composer (only for composer::autoload)
  • bootstrap 4.0 / jQuery 1.12 (CDN)

Everything is written from zero state, nothing is stolen...

Done for now

  • core
  • login/logout
  • lottery play
  • accept/reject/convert prize
  • withdraw EURO prize to creditCard
  • admin panel - set status SENT for item prizes and transfer EURO for winners
  • CLI - migrations, cli command for transfer all confirmed payments (can be used by Crontab)

Installing

Clone repository

git clone https://github.com/AzGothic/casexe-php.git /path/to/project

Install composer

composer install

Set local configs to /config/ directory, examples in

/samples/config/

Use migration tool for creating DB structure and needed data

php app migrate

Usage

Path to public:

http://site

Test users:

Path to admin panel:

http://site/admin

Test admin:

Run transfer payments from command line:

php app transfer {LIMIT}

Project structure

.
├── base                    # base application directory, core
├── config                  # configs
├── controller              # controllers for web
│   └── base                # base controllers
├── command                 # controllers for cli
├── view                    # views for web
├── model                   # models
├── web                     # public directory for web
├── module                  # modules
├── migrate                 # DB migrations
├── vendor                  # composer vendors directory
├── samples                 # examples for install project
│   └── config              # local config files
├── bootstrap.php           # main loader file
├── composer.json           # composer config
├── composer.lock           # composer installed packages config
├── app                     # cli loader
├── app.bat                 # batch cli loader for Windows
├── .gitignore
└── README.md

DB structure

.
├── user                    # users table
├── admin                   # admin users table
├── options                 # configurations for lottery
├── items                   # items for lottery
├── winners                 # winners table included user id, type of prize, value/item id
└── migration_casexe        # technical table for migrations check

Extra

Migrations create

php app migrate/create {NAME}

casexe-php's People

Contributors

azgothic avatar

Stargazers

 avatar

Watchers

 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.