Download the PHP package robertkleinschuster/zenith without Composer
On this page you can find all versions of the php package robertkleinschuster/zenith. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download robertkleinschuster/zenith
More information about robertkleinschuster/zenith
Files in robertkleinschuster/zenith
Package zenith
Short Description A Component App Framework for PHP
License MIT
Informations about the package zenith
Zenith
Zenith is an advanced PHP application framework designed to streamline the development process by incorporating both the Slim Framework and Compass Router for a component-driven development experience inspired by NEXT.js routing.
Key Features
- Component-Driven Development: Utilizes a highly modular architecture allowing for reusable components.
- NEXT.js Inspired Routing: Offers an intuitive approach to routing in PHP, enhancing the navigational structure of your application.
- Slim Framework Base: Leverages the Slim Framework, providing a powerful and robust base for building applications.
- Advanced Rendering Techniques: Supports reactive and lazy page rendering to optimize user experiences.
Quick Start
Create and run your next PHP application in a few easy steps:
-
Project Setup:
Initialize a new project using Composer:
-
Development Server:
Launch the development server:
Visit your application at https://localhost:8080/.
-
Add Routes:
Introduce new routes to your application easily:
Example: Access
route/about-me/page.php
via https://localhost:8080/about-me.
Directory Structure
Understand the architecture of your project:
Usage Example
This example demonstrates setting up a user profile page, focusing on automatic route registration, dynamic layouts, and handling form submissions according to the framework's conventions.
Convention Overview
page.php
files for GET requests andlayout.php
for layouts follow a specific naming and directory structure convention based on the route they serve.action.php
files, for POST requests, are placed alongsidepage.php
andlayout.php
files, adhering to the same path-related conventions.
Step 1: Profile Page and Layout
For the route /user/{userId}
, arrange the following structure inside the routes
directory:
-
Add
page.php
withinroutes/user/{userId}/
to render profile content: - Create
layout.php
in the same directory (routes/user/{userId}/
) to establish the page layout:
Step 2: Form Submission Action
- Implement
action.php
withinroutes/user/{userId}/
for processing the form submission:
All versions of zenith with dependencies
robertkleinschuster/compass Version v0.0.1
robertkleinschuster/mosaic Version v0.0.1
slim/slim Version ^4.12
slim/psr7 Version ^1.6