CoinRex is a PHP/MySQL platform for crypto project reviews, proof-based trust workflows, rewards, and admin moderation.
It is designed to help users review crypto projects with evidence, earn platform rewards, and progress through a structured trust system while giving administrators and project operators the tools to verify activity and reduce abuse.
CoinRex combines several product areas in one platform:
- Public review platform for discovering and reviewing crypto projects
- Proof-backed review workflow with screenshots, holdings, and moderation controls
- Reward accounting for user progression and claim tracking
- TaskHub / BoostHub systems for guided participation and earning
- Admin moderation tools for project, review, user, reward, and security management
- Developer/project-side flows through DevHub and widget integrations
- User onboarding with OTP verification
- Review submission with proof flow and moderation
- TaskHub/BoostHub progression for beginner accounts
- Reward ledger + claim snapshot lifecycle
- Referral + level state model (Beginner / Pro / Expert)
- Admin control center for users, projects, reviews, tasks, rewards
- Security management workflow (flag / warn / suspend / module blocks)
- Widget/token support for controlled project embeds
- Backend: PHP
- Database: MySQL (InnoDB)
- Dependency manager: Composer
- Mail/OTP library:
phpmailer/phpmailer - Frontend: server-rendered PHP + CSS/JS
- Architecture style: modular monolith with file-based routes and shared domain helpers
/
├─ auth/ # user auth and OTP flows
├─ admin/ # admin panel + RBAC + moderation tools
├─ api/ # JSON endpoints
├─ devhub/ # developer/project-side pages and workflows
├─ includes/ # shared config, helpers, and services
├─ assets/ # CSS, images, and static frontend assets
├─ uploads/ # runtime user/project uploads (ignored in Git)
├─ database/migrations/ # schema changes and seed files
└─ docs/ # architecture, security, API, roadmap, etc.
- Password hashing via
password_hash/password_verify - OTP expiry, cooldown, and attempt controls
- Admin CSRF protections (
adminCsrfToken,requireAdminCsrf) - Anti-abuse event logging (
user_security_signals,fraud_events) - Dedicated Security Management admin workflow
- Environment-based configuration using
.env/.env.local
Before any production deployment, rotate sensitive credentials, enforce production-safe configuration, and review the security checklist in
docs/SECURITY.md.
-
Clone into your web root, for example:
c:/xampp/htdocs/coinrex
-
Install dependencies:
composer install
-
Create the database and import schema:
database/migrations/recreate_db.sqlfor the main schemadatabase/migrations/admin_seed.sqlfor optional admin bootstrap, after replacing its placeholder values with your own secure admin details
-
Apply newer migrations from
database/migrations/if needed. -
Copy
.env.exampleto.envand configure:- database connection
- app secrets
- SMTP settings
-
If you need an initial admin account, generate your own bcrypt password hash and customize
database/migrations/admin_seed.sqlbefore running it. -
Ensure writable runtime directories exist:
uploads/devhub/logs/
Set these values in .env or .env.local:
COINREX_SMTP_HOST=smtp.gmail.com
COINREX_SMTP_PORT=587
COINREX_SMTP_SECURE=tls
COINREX_SMTP_USERNAME=your-email@example.com
COINREX_SMTP_PASSWORD=your-app-password
COINREX_MAIL_FROM=your-email@example.comIf you use Gmail, use an App Password instead of your normal account password.
This repository is prepared for GitHub publishing with security in mind.
- source code
- documentation
- database migrations
composer.jsonandcomposer.lock.env.example.gitignore
.env/.env.local- live credentials or API secrets
- logs
- runtime uploads or user-generated files
- local-only archives, dumps, or machine-specific files
If any secret has ever been exposed locally or in a prior repo history, rotate it before treating the repository as production-ready.
CoinRex is evolving in phases:
- Phase 1: security and configuration hardening
- Phase 2: modular refactor and maintainability improvements
- Phase 3: platform scalability and ecosystem evolution
See the full roadmap in docs/ROADMAP.md.
At the current stage, contributions should stay security-first and review-friendly:
- never commit secrets or real environment files
- prefer migrations over runtime schema mutation
- keep commits focused and easy to review
- update
docs/when behavior or architecture changes
Future improvements may include a dedicated CONTRIBUTING.md, issue templates, screenshots, and CI checks.
- Main application repo:
coinrex-platform - Supporting/legacy docs repo:
coinrex-docs
The long-term goal is for coinrex-platform to remain the primary codebase, while coinrex-docs can serve as a lightweight public documentation, concept, or archive repository that points back to the main project.
CoinRex aims to become a more trusted environment for evaluating crypto opportunities by combining:
- verified user participation
- evidence-backed reviews
- reward-based progression
- stronger moderation and anti-abuse controls