GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - danganh97/miduner: This is a framework, but not a framework !!!

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
bootstrap
bootstrap
 
 
config
config
 
 
database
database
 
 
docker
docker
 
 
helpers
helpers
 
 
public
public
 
 
resources
resources
 
 
routes
routes
 
 
storage
storage
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
composer.json
composer.json
 
 
docker-compose.yml
docker-compose.yml
 
 
hustle
hustle
 
 
readme.md
readme.md
 
 
server.php
server.php
 
 

Repository files navigation

Miduner Project Skeleton

This repository provides the official project skeleton for building applications with the Miduner Framework.

  • Core framework package: miduner/miduner
  • Core framework repository: github.com/miduner/framework

The project is designed for PHP 7.4+ and uses static typing features such as type hints and arrow functions.

Requirements

  • PHP >= 7.4.10
  • PHP extensions:
    • ext-pdo
    • ext-readline
    • ext-json
  • Composer

Installation

Create a new Miduner project:

composer create-project danganh97/miduner:dev-master your-project-folder

Quick Start

From the project root:

cp .env.example .env
php hustle key:generate
php hustle config:cache
php hustle serve

Run with a custom host and port:

php hustle serve --host=192.168.1.1 --port=1997

Use --open to open the application in your browser automatically.

CLI Overview

Run the following command to view all available commands:

php hustle list

Code Generation

php hustle make:command {CommandName}
php hustle make:controller {ControllerName}
php hustle make:model {ModelName}
php hustle make:request {RequestName}
php hustle make:migration --table={TableName}

Configuration and Security

php hustle config:cache
php hustle key:generate
php hustle jwt:install

After generating a new key or installing JWT, refresh configuration cache.

Database Operations

php hustle migrate
php hustle migrate:rollback
php hustle db:seed

Query and Routing Utilities

php hustle exec:query --query="select * from users"
php hustle exec:query --query="select * from users" --test=true
php hustle route:list
php hustle route:list --format=json
php hustle route:list --format=array

Interactive Mode

php hustle live:code

For help on any command:

php hustle <command> --help

Task Scheduling

Add the following entry to your crontab:

* * * * * cd miduner && php hustle schedule:run >> /dev/null 2>&1

Example scheduler setup in App\Console\Kernel:

<?php

namespace App\Console;

use App\Console\Commands\ExampleCommand;
use Midun\Console\Kernel as ConsoleKernel;
use Midun\Console\Scheduling\Schedule;

class Kernel extends ConsoleKernel
{
    protected array $commands = [
        ExampleCommand::class
    ];

    public function schedule(Schedule $schedule): void
    {
        $schedule->command(ExampleCommand::class)->daily();
        $schedule->command(ExampleCommand::class)->weekly();
        $schedule->command(ExampleCommand::class)->monthly();
        $schedule->command(ExampleCommand::class)->yearly();
        $schedule->command(ExampleCommand::class)->dailyAt('13:30');
        $schedule->command(ExampleCommand::class)->cron('* * * * *');

        $schedule->command(ExampleCommand::class)
            ->everyMinute()
            ->output(storage_path('logs/schedule.log'))
            ->cli('/usr/bin/php');
    }
}

Docker (Optional)

If PHP is not available locally, you can use Docker:

docker-compose up --build -d

Then add the following entry to your hosts file:

127.0.0.1 miduner.local

Documentation

Official documentation is available at: miduner.com/docs

Contributing

Contributions are welcome. To enable development mode:

php hustle development:enable

Or:

php hustle dev:mode

Security

If you discover a security vulnerability, please email [email protected].

License

This project is open-sourced under the MIT license.

About

This is a framework, but not a framework !!!

www.miduner.com

Topics

miduner-frameworkphpphp-frameworkphp-frameworks

Resources

Readme
Activity

Stars

26 stars

Watchers

1 watching

Forks

25 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.