lukman-ss/intisari-starter

Starter project for IntisariPHP applications.

Maintainers

Package info

github.com/lukman-ss/intisari-starter

Type:project

pkg:composer/lukman-ss/intisari-starter

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-06-17 12:39 UTC

This package is auto-updated.

Last update: 2026-06-17 15:25:53 UTC


README

IntisariPHP Starter Hero

Starter project for building applications with the IntisariPHP framework.

Requirements

  • PHP >= 8.2
  • Composer

Installation

Create a new project using Composer:

composer create-project lukman-ss/intisari-starter my-app

Move into your project directory:

cd my-app

Copy the environment file:

cp .env.example .env

Development Server

Start the built-in PHP development server:

composer serve

The application will be available at http://127.0.0.1:8000.

Running Tests

composer test

Intisari CLI (Console Commands)

This starter project includes a Laravel-style CLI tool named intisari located at the root of the project. It works similarly to Laravel's artisan, allowing you to run, manage, and generate various components of your application.

Available Commands

  • Serve Development Server: Starts the built-in development server.

    php intisari serve
    # Options: --host=0.0.0.0 --port=8080
  • Route Listing: Lists all registered web routes in a clean ASCII table.

    php intisari route:list
  • Configuration Cache: Caches all configuration files into a single optimized cache file.

    php intisari config:cache
  • Configuration Clear: Removes the configuration cache file.

    php intisari config:clear
  • Generate Controller: Creates a new final controller class in app/Controllers/.

    php intisari make:controller UserController
    # Suffix 'Controller' is automatically appended if omitted.
    # Options: --force to overwrite.
  • Generate Middleware: Creates a new final middleware class in app/Middleware/.

    php intisari make:middleware AuthMiddleware
    # Options: --force to overwrite.
  • Generate Service Provider: Creates a new final service provider class in app/Providers/.

    php intisari make:provider PaymentServiceProvider
    # Options: --force to overwrite.
  • Generate Console Command: Creates a new console command class in app/Commands/.

    php intisari make:command SendEmailCommand
    # Resolves class name into a colon command (e.g. SendEmailCommand -> send:email).
    # Options: --force to overwrite.
  • About Application: Displays basic metadata about the application, environment, PHP version, and base path.

    php intisari about
  • Environment Display: Displays the current application environment safely without exposing secrets.

    php intisari env
  • Run Tests: Runs the application tests via PHPUnit.

    php intisari test

Project Structure

my-app/
|-- app/
|   |-- Controllers/        # HTTP controllers
|   |-- Middleware/         # Application middleware
|   `-- Providers/          # Service providers
|-- bootstrap/              # Application bootstrap files
|-- config/                 # Configuration files
|-- database/               # Local database files
|-- public/                 # Web root and front controller
|-- resources/
|   `-- views/              # PHP view templates
|-- routes/
|   |-- web.php             # Web routes
|   `-- console.php         # Console commands
|-- storage/
|   |-- cache/              # Application cache
|   |-- logs/               # Log files
|   `-- framework/          # Framework runtime files
|-- tests/                  # PHPUnit tests
|-- .env.example            # Environment variable template
`-- composer.json

Documentation

For a step-by-step guide, see docs/getting-started.md.

Framework Dependency

This starter project is powered by lukman-ss/intisari.