All Projects → utopia-php → framework

utopia-php / framework

Licence: MIT license
Lite & fast micro PHP framework that is **easy to learn**.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to framework

Mu
A tweet-sized PHP micro-router
Stars: ✭ 229 (+108.18%)
Mutual labels:  router, micro-framework
Falco
A functional-first toolkit for building brilliant ASP.NET Core applications using F#.
Stars: ✭ 214 (+94.55%)
Mutual labels:  router, micro-framework
jflask
Flask-inspired web micro-framework for Java (deprecated)
Stars: ✭ 18 (-83.64%)
Mutual labels:  micro-framework
router
Bidirectional Ring router. REST oriented. Rails inspired.
Stars: ✭ 78 (-29.09%)
Mutual labels:  router
organiser
An organic web framework for organized web servers.
Stars: ✭ 58 (-47.27%)
Mutual labels:  router
use-react-router-breadcrumbs
tiny, flexible, hook for rendering route breadcrumbs with react-router v6
Stars: ✭ 170 (+54.55%)
Mutual labels:  router
Computer-Networks
GBN and SR simulation, Distance Vector Algorithm Simulation
Stars: ✭ 21 (-80.91%)
Mutual labels:  router
oms.py
🔨 A micro-framework for the OMS, and code written in Python 3.6+.
Stars: ✭ 106 (-3.64%)
Mutual labels:  micro-framework
CRRouter
A simple and powerful router
Stars: ✭ 54 (-50.91%)
Mutual labels:  router
middle-router
Route urls on both client and server through middleware
Stars: ✭ 33 (-70%)
Mutual labels:  router
STCRouter
基于标准URL的iOS路由系统,可实现业务模块组件化,控制器之间零耦合,可实现黑白名单控制,可进行native降级到hybrid。
Stars: ✭ 19 (-82.73%)
Mutual labels:  router
use-router-machine
Router state-machine hook, powered by XState (DEPRECATED).
Stars: ✭ 11 (-90%)
Mutual labels:  router
neteng-roadmap
Network Engineering at Scale Roadmap/Landscape
Stars: ✭ 53 (-51.82%)
Mutual labels:  router
ruuter
A zero-dependency HTTP router
Stars: ✭ 57 (-48.18%)
Mutual labels:  router
orion
A Crystal router
Stars: ✭ 115 (+4.55%)
Mutual labels:  router
boring-router
A type-safe MobX router with parallel routing support.
Stars: ✭ 74 (-32.73%)
Mutual labels:  router
Android-XRouter
This is a lightweight and simple routing framework that provides jump routing and method routing.
Stars: ✭ 19 (-82.73%)
Mutual labels:  router
http-multiserver.cr
Mount multiple web applications 🚦
Stars: ✭ 23 (-79.09%)
Mutual labels:  router
openwrt
OpenWrt Stable 1907 with lean's package
Stars: ✭ 55 (-50%)
Mutual labels:  router
YAWAC
Yet Another Wifi Auto Connect (YAWAC) is a shell script to connect to a dataset of wireless connection and free hotspot like FreeWifi. It's works on OpenWrt.
Stars: ✭ 22 (-80%)
Mutual labels:  router

Logo

Build Status Total Downloads Discord

Utopia Framework is a PHP MVC based framework with minimal must-have features for professional, simple, advanced and secure web development. This library is maintained by the Appwrite team.

Utopia Framework is dependency free. Any extra features such as authentication, caching will be available as standalone models in order to keep the framework core as clean, light and easy to learn.

Getting Started

Install using composer:

composer require utopia-php/framework

Init your first application:

require_once __DIR__ . '/../../vendor/autoload.php';

use Utopia\App;
use Utopia\Request;
use Utopia\Response;

App::get('/hello-world') // Define Route
    ->inject('request')
    ->inject('response')
    ->action(
        function($request, $response) {
            $response
              ->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate')
              ->addHeader('Expires', '0')
              ->addHeader('Pragma', 'no-cache')
              ->json(['Hello' => 'World']);
        }
    );

App::setMode(App::MODE_TYPE_PRODUCTION); // Define Mode

$app        = new App('America/New_York');
$request    = new Request();
$response   = new Response();

$app->run($request, $response);

System Requirements

Utopia Framework requires PHP 7.3 or later. We recommend using the latest PHP version whenever possible.

More from Utopia

Our ecosystem support other thin PHP projects aiming to extend the core PHP Utopia framework.

Each project is focused on solving a single, very simple problem and you can use composer to include any of them in your next project.

Library Description
Utopia AB Simple PHP library for managing AB testing on the server side.
Utopia Abuse Simple PHP library for rate limiting usage of different features in your app or API.
Utopia Analytics Simple PHP library to send information about events or pageviews to Google Analytics.
Utopia Audit Simple PHP library for audit logging users actions and system events
Utopia Cache Simple PHP library for managing cache with different storage adapters.
Utopia CLI Simple PHP library for for building simple command line tools.
Utopia Config Simple PHP library for managing your app configuration.
Utopia Database Simple PHP library for managing application persistency. It supports multiple database adapters.
Utopia Domains Simple PHP library for parsing domain names.
Utopia Image Simple PHP library for creating common image manipulations that is easy to use.
Utopia Locale Simple PHP library for adding support to multiple locales in your app or API.
Utopia Preloader Simple PHP library for managing PHP preloading configuration.
Utopia Registry Simple PHP library for dependency injection and lazy loading of objects or resources.
Utopia System Simple PHP library for obtaining information about the host's system.
Utopia Storage Simple and lite PHP library for managing application storage. It supports multiple storage adapters.

Authors

Eldad Fux

Contributing

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send us a pull request.

You can refer to the Contributing Guide for more info.

For security issues, please email [email protected] instead of posting a public issue in GitHub.

Testing

  • docker-compose up -d
  • docker-compose exec web vendor/bin/phpunit --configuration phpunit.xml
  • docker-compose exec web vendor/bin/psalm --show-info=true

Copyright and license

The MIT License (MIT) http://www.opensource.org/licenses/mit-license.php

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].