Getting Started

Getting Started

Start here to learn more about the purpose of CodefyPHP, what you need to have setup for your server environment, and how to install the framework.

Configuration

All configuration files for the CodefyPHP Framework are stored in the config directory. These config files allow you to configure security, your database, caching, cookies,...

Written by Joshua
August 14, 2024

Request and Response

Qubus\Http\Request, Qubus\Http\Response, and Qubus\Http\ServerRequest are all wrappers for laminas-diactoros.

Written by Joshua
August 14, 2024

Sessions

CodefyPHP comes with two ways to work with sessions. You can work with native PHP sessions or a session abstraction for PSR-7 with option of...

Written by Joshua
August 14, 2024

Introduction

The name Codefy is a derivative of the word codify which means to arrange into a systematic code according to a plan or system.

Written by Joshua
August 14, 2024

Server Requirements

Your server environment must meet certain criteria before you can use CodefyPHP.

Written by Joshua
August 14, 2024

Installation

The easiest way to install CodefyPHP is to use composer by creating a new project using the current stable branch of the skeleton app starter.

Written by Joshua
August 14, 2024

Codex

Codex is the command line interface for CodefyPHP. It provides a few native commands to get you started building your first project.

Written by Joshua
August 14, 2024

Service Provider

Service providers are used to bootstrap your application with the injection of core classes and dependencies.

Written by Joshua
August 14, 2024

Controllers

An alternative way of defining request logic in a route is by organizing it by utilizing Controllers.

Written by Joshua
August 14, 2024

Middleware

A PSR-7/15 Middleware can be added to routes, groups, and controllers.

Written by Joshua
August 14, 2024

Scaffold Templates

Scaffold contains two templating engines to make it easier to use what you need for any project. One is Scaffold:Native while the other is Scaffold:Compiler.

Written by Joshua
August 14, 2024

Scheduler

The scheduler allows you to manage scheduled tasks on your server. You can define your schedule for each task that is triggered by a single...

Written by Joshua
August 14, 2024

Stubs

Stubs are available for controllers, repositories, providers, middlewares, and errors.

Written by Joshua
August 14, 2024