PHPackages                             danganh97/miduner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. danganh97/miduner

ActiveProject[Framework](/categories/framework)

danganh97/miduner
=================

Miduner framework

286327PHPCI passing

Since Aug 28Pushed 3w ago1 watchersCompare

[ Source](https://github.com/danganh97/miduner)[ Packagist](https://packagist.org/packages/danganh97/miduner)[ RSS](/packages/danganh97-miduner/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Miduner Project Skeleton
========================

[](#miduner-project-skeleton)

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

- Core framework package: [miduner/miduner](https://packagist.org/packages/miduner/miduner)
- Core framework repository: [github.com/miduner/framework](https://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
------------

[](#requirements)

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

Installation
------------

[](#installation)

Create a new Miduner project:

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

Quick Start
-----------

[](#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
------------

[](#cli-overview)

Run the following command to view all available commands:

```
php hustle list
```

### Code Generation

[](#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

[](#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

[](#database-operations)

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

### Query and Routing Utilities

[](#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

[](#interactive-mode)

```
php hustle live:code
```

For help on any command:

```
php hustle  --help
```

Task Scheduling
---------------

[](#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`:

```
