ZeroPing ZeroPing v2.0.1
Home Getting Started Installation Documentation Features API Roadmap Community
GitHub Star
Home Getting Started Installation Documentation Features API Roadmap Community GitHub GitHub
    Home Documentation Getting Started
  • Introduction
  • Installation
  • Getting Started
  • CLI Reference
  • Validation
  • Caching
  • Database & ORM
  • Service Container
  • Queues & Jobs
  • Task Scheduler
  • Security
  • Extending ZeroPing
  • Starter Templates
  • Search
  • Performance
  • Roadmap

Getting Started

Build your first page by defining a route, controller action, and view.

Define the route

PHP
use App\Core\Routing\Router;
use App\Controllers\HomeController;

Router::get('/', [HomeController::class, 'index']);

Create a controller action

PHP
public function home(): void
{
    $this->view('site/home', ['title' => 'ZeroPing']);
}

Create a view

PHP
<h1>Welcome to ZeroPing</h1>
<p>You are ready to build.</p>

Add styling with Tailwind

Use Tailwind utility classes to ship responsive layouts quickly while keeping design consistent.

Installation
CLI Reference

On this page

  • Define the route
  • Create a controller action
  • Create a view
  • Add styling with Tailwind
ESC

Type to search documentation...