inphinit/framework

A framework for easy creation of routes

Installs: 395

Dependents: 1

Suggesters: 0

Security: 0

Stars: 12

Watchers: 3

Forks: 2

Open Issues: 0

pkg:composer/inphinit/framework

2.0 2024-11-24 14:55 UTC

README

Inphinit is a PHP framework for managing routes, controllers, and views. To learn more or try it out, visit:

Requirements

  1. See currently supported PHP versions: https://www.php.net/supported-versions.php.
    • Minimal PHP 5.4 (backward compatibility is maintained for users with upgrade limitations).
    • If you need a full-featured server for Windows or macOS, you can try WampServer, XAMPP, Laragon, EasyPHP, or AMPPS.
  2. (Optional) Intl PHP extension to use Inphinit\Utility\Strings class.
  3. (Optional) COM PHP extension or cURL PHP extension to use Inphinit\Filesystem\Size class.

Getting started

This repository contains the core code of the Inphinit framework. To build an application, visit the main repository.

Inphinit is a minimalist framework inspired by the syntax of other popular frameworks, designed to make learning easier. The core of the framework is divided into two parts: Inphinit and Inphinit\Experimental.

  • Inphinit namespace contains all defined classes that will hardly change their behavior.
  • Inphinit\Experimental namespace contains classes that are being designed and tested. Some of them already work very well, while others are still being defined. Once a class is stable and fully tested, it will be moved to the Inphinit namespace.

If you are a contributor, before sending a pull-request it is important to run LINT, run the following command to check for syntax errors:

find . -type f -name "*.php" -exec php -l {} \;

On Windows:

for /R %F in (*.php) do @php -l %F