Skip to content

kingjethro999/FireUp-Php-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”₯ FireUp PHP Framework

A modern, lightweight PHP framework designed for simplicity and ease of use. FireUp makes PHP development faster and more enjoyable for beginners while providing powerful features for experienced developers.

🌟 What Makes FireUp Special?

1. Instant API Mode

Unlike other frameworks that require complex API setup, FireUp provides instant API endpoints for your models. Just create a model and get RESTful APIs automatically:

// Create a model
fireup create:model Product

// Instant API endpoints available:
// GET /api/products
// POST /api/products
// GET /api/products/{id}
// PUT /api/products/{id}
// DELETE /api/products/{id}

2. No ORM Lock-in

While Laravel forces Eloquent and CodeIgniter has limited options, FireUp gives you complete freedom:

  • Use any database system
  • Choose your own ORM
  • Mix and match different database solutions
  • Native PDO support with query builder

3. Built-in Plugin System

Unlike Laravel's package system or CodeIgniter's lack of plugins, FireUp offers:

  • One-click plugin installation
  • Plugin marketplace
  • Automatic dependency management
  • Hot-reload plugin support

4. Zero-Configuration Storage

Unlike WordPress requiring complex setup or Laravel needing multiple configs, FireUp provides:

  • Automatic file organization
  • Built-in CDN support
  • Instant file upload handling
  • No configuration needed

5. AI-Powered Development

Unique to FireUp:

  • Code suggestions as you type
  • Automatic code completion
  • Smart error detection
  • Performance optimization tips

6. Native WebSocket Support

Unlike other frameworks requiring additional packages:

  • Built-in WebSocket server
  • Real-time updates out of the box
  • No additional setup needed
  • Automatic client reconnection

7. Simple CLI Tools

Unlike complex Artisan commands or limited CodeIgniter CLI:

  • Intuitive command names
  • Built-in help system
  • Interactive prompts
  • No memorization needed

8. Flexible Theming

Unlike WordPress's rigid theme system or Laravel's lack of theming:

  • Multiple active themes
  • Theme inheritance
  • Live theme switching
  • Component-based theming

πŸ”₯ Why Choose FireUp Over Other Frameworks?

Feature FireUp βœ… Laravel ❌ CodeIgniter ❌ WordPress ❌
Simple Routing βœ… Instant ❌ Requires Controllers ❌ Requires Controllers ❌ Hardcoded URLs
Auto REST API βœ… Yes ❌ Requires API Resource ❌ Manual Setup ❌ Plugins Required
No ORM Lock-in βœ… Flexible ❌ Forced Eloquent ❌ Limited Query Builder ❌ MySQL-Only
Plugin System βœ… Yes ❌ No (Uses Packages) ❌ No βœ… Yes
No Setup Storage βœ… Yes ❌ Requires Config ❌ No Built-in ❌ Requires Plugins
AI Assistant βœ… Yes ❌ No ❌ No ❌ No
WebSockets βœ… Built-in ❌ Needs Laravel Echo ❌ No ❌ No
Theming System βœ… Yes ❌ No ❌ No βœ… Yes
CLI Simplicity βœ… FireUp CLI ❌ Artisan (Advanced) ❌ Limited ❌ WP-CLI (Complex)

πŸš€ Features

  • Simple & Lightweight MVC Structure
  • Instant API Mode - Auto-generate RESTful APIs
  • Ultra-Simple Database Handling
  • Plugin System
  • Performance Optimizations
  • Built-in Security Features
  • No-Setup File Storage
  • AI-Powered Code Suggestions
  • Native AJAX & WebSockets Support
  • Simple CLI Tools - Like Laravel Artisan
  • Flexible Theming System
  • JavaScript Integration - Modern frontend tooling with Vite
  • Mobile-Ready APIs - Auto-generate endpoints for React Native apps
  • Advanced CLI Generators - Scaffold components with make: commands

πŸ“‹ Requirements

  • PHP 8.0 or higher
  • PDO PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension

πŸ›  Installation

Via Composer

composer create-project fireup/fireup my-project

Manual Installation

  1. Clone the repository:
git clone https://github.com/yourusername/fireup.git
  1. Install dependencies:
composer install
  1. Copy the environment file:
cp .env.example .env
  1. Generate application key:
fireup key:generate

πŸ”§ XAMPP & WAMP Integration

1. Install XAMPP/WAMP

  • Download XAMPP or WAMP
  • Ensure Apache & MySQL are running

2. Install FireUp in XAMPP/WAMP

# Navigate to XAMPP htdocs
cd C:\xampp\htdocs
# Or WAMP www directory
cd C:\wamp64\www

# Create new FireUp project
composer create-project fireup/fireup myapp

3. Database Setup

  1. Open phpMyAdmin (http://localhost/phpmyadmin)
  2. Create new database (e.g., fireup_db)
  3. Configure .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=fireup_db
DB_USERNAME=root
DB_PASSWORD=
  1. Run migrations:
fireup migrate

4. Running FireUp

Option 1: Using FireUp Server

cd C:\xampp\htdocs\myapp
fireup serve

Access at: http://localhost:8000

Option 2: Using XAMPP/WAMP Server

  1. Configure .htaccess in public/:
RewriteEngine On
RewriteBase /myapp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
  1. Access at: http://localhost/myapp/public

5. Development Workflow

Command Description
fireup serve Start development server with visual setup UI
fireup migrate Create database tables
fireup golive Prepare for production
fireup create:model Create database models
fireup create:controller Create controllers
fireup create:view Create views

6. Database Management

  • Use phpMyAdmin for visual database management
  • Access at: http://localhost/phpmyadmin
  • Create/modify tables visually
  • Import/export data
  • Manage users and permissions

🎯 Available Commands

Server Commands

fireup serve              # Start the development server
fireup golive            # Prepare your project for production

Model Commands

fireup create:model      # Create a new model
fireup make:model        # Alias for create:model

Controller Commands

fireup create:controller # Create a new controller
fireup make:controller   # Alias for create:controller

View Commands

fireup create:view       # Create a new view
fireup make:view         # Alias for create:view

Database Commands

fireup migrate          # Run database migrations
fireup rollback         # Rollback the last migration
fireup migrate:fresh    # Drop all tables and re-run migrations

Route Commands

fireup route:list       # List all registered routes
fireup route:clear      # Clear route cache

Other Commands

fireup key:generate     # Generate application key
fireup config:cache     # Cache configuration
fireup config:clear     # Clear configuration cache
fireup view:cache       # Cache views
fireup view:clear       # Clear view cache

Frontend Commands

fireup frontend init    # Initialize frontend setup
fireup frontend install # Install frontend dependencies
fireup frontend dev     # Start Vite dev server
fireup frontend build   # Build for production
fireup frontend watch   # Watch for changes

Advanced Generators

fireup make:command     # Create a new custom command
fireup make:middleware  # Create a new middleware
fireup make:policy      # Create a new policy
fireup make:seeder      # Create a new database seeder
fireup make:factory     # Create a new model factory
fireup make:event       # Create a new event class

API Commands

fireup api:mobile-ready # Prepare API for mobile apps
fireup route:list --docs # Generate OpenAPI documentation

πŸ“š Documentation

For detailed documentation, visit our documentation website.

πŸ”§ Command Options

Model Creation

fireup create:model User --table=users --fillable=name,email --hidden=password

Controller Creation

fireup create:controller UserController --resource --model=User

View Creation

fireup create:view auth.login --layout=auth

Server Options

fireup serve --host=0.0.0.0 --port=8080

πŸ“– Advanced API Documentation

FireUp now generates rich OpenAPI docs for your API:

  • Path/query parameters are auto-detected (e.g., /api/v1/users/{id})
  • Request/response schemas are included for each endpoint
  • Endpoints requiring authentication are marked with Bearer token security
  • Docs are available at http://localhost:8000/api/docs after running fireup api:mobile-ready or fireup route:list --docs

πŸš€ JavaScript Integration

FireUp includes modern JavaScript tooling powered by Vite:

Features

  • Hot Module Replacement - Instant updates during development
  • ES6+ Support - Use modern JavaScript features
  • Tailwind CSS - Utility-first CSS framework
  • Axios Integration - Built-in HTTP client for API calls
  • Event System - Custom event handling
  • Utility Functions - Notifications, formatting, debouncing

Quick Start

# Initialize frontend setup
fireup frontend init

# Install dependencies
fireup frontend install

# Start development
fireup frontend dev

Global FireUp Object

// API calls
FireUp.api.get('/api/users')
  .then(response => console.log(response.data));

// Notifications
FireUp.utils.notify('Success!', 'success');

// Events
FireUp.events.on('user-logged-in', (user) => {
  console.log('User logged in:', user);
});

πŸ— Project Structure

my-project/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ Controllers/
β”‚   β”œβ”€β”€ Models/
β”‚   └── Views/
β”œβ”€β”€ config/
β”œβ”€β”€ database/
β”‚   └── migrations/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ css/
β”‚   β”œβ”€β”€ js/
β”‚   └── images/
β”œβ”€β”€ routes/
β”œβ”€β”€ storage/
β”œβ”€β”€ vendor/
β”œβ”€β”€ .env
β”œβ”€β”€ .gitignore
β”œβ”€β”€ composer.json
└── index.php

🀝 Contributing

We welcome contributions! Please see our contributing guide for details.

πŸ“„ License

FireUp is open-sourced software licensed under the MIT license.

πŸ“ž Support

πŸ™ Acknowledgments

  • Inspired by Laravel, CodeIgniter, and WordPress
  • Built with ❀️ by the FireUp Team

About

No description, website, or topics provided.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.md

Contributing

Stars

Watchers

Forks

Packages

No packages published