项目作者: AzGothic

项目描述 :
Casexe PHP 7.0
高级语言: PHP
项目地址: git://github.com/AzGothic/casexe-php.git
创建时间: 2018-05-09T09:37:01Z
项目社区:https://github.com/AzGothic/casexe-php

开源协议:

下载


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

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

Install composer

  1. composer install

Set local configs to /config/ directory, examples in

  1. /samples/config/

Use migration tool for creating DB structure and needed data

  1. php app migrate

Usage

Path to public:

  1. http://site

Test users:

Path to admin panel:

  1. http://site/admin

Test admin:

Run transfer payments from command line:

  1. php app transfer {LIMIT}

Project structure

  1. .
  2. ├── base # base application directory, core
  3. ├── config # configs
  4. ├── controller # controllers for web
  5. └── base # base controllers
  6. ├── command # controllers for cli
  7. ├── view # views for web
  8. ├── model # models
  9. ├── web # public directory for web
  10. ├── module # modules
  11. ├── migrate # DB migrations
  12. ├── vendor # composer vendors directory
  13. ├── samples # examples for install project
  14. └── config # local config files
  15. ├── bootstrap.php # main loader file
  16. ├── composer.json # composer config
  17. ├── composer.lock # composer installed packages config
  18. ├── app # cli loader
  19. ├── app.bat # batch cli loader for Windows
  20. ├── .gitignore
  21. └── README.md

DB structure

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

Extra

Migrations create

  1. php app migrate/create {NAME}