core icon indicating copy to clipboard operation
core copied to clipboard

An extensible micro-framework for PHP

Results 70 core issues
Sort by recently updated
recently updated
newest added

[PHP named arguments](https://www.php.net/manual/en/functions.arguments.php#functions.named-arguments) helps in some situations for cleaned code, it locks library maintainers to not change the argument names so easily without breaking changes, but php 8 must have...

Enhancement

This is an alternative of Resource controllers, for people like me that name routes in spanish but controllers in english (for cohesion) ```php Flight::route( '/users', UsersController::class, [ 'GET /' =>...

## Componetization syntax Current: ```php

**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: - clone current git master - composer install - composer...

Bug

Some `@method`s are described incorrectly. Types here should be in native php syntax and there is no way to describe generic types in `@method`s directly. Generic types are allowed in...

Bug

$this->app->request ()->host results in $_SERVER['HTTP_HOST'], which could be forged from outside. Could you add a new variable e.g "servername" with $this->app->request ()->servername, which delivers the content of $_SERVER['SERVER_NAME']? [CAUTION](https://www.php.net/manual/en/reserved.variables.server.php): Note:...

Hi, After upgrading from 3.15.1 to 3.15.2 my routing stopped working. This request: `https://api.golfana.local:444/api/initialize-session` (as taken from the network tab in the browser's developer console) Is reported by` \Flight::request()->url` as:...

Bug

With FlightPHP v2, we could send JSON easily, even if the method `start()` was not called yet. Example: ```php require_once __DIR__ . '/vendor/autoload.php'; Flight::json("Hello"); ``` Now, with v3, nothing happens...

That work is for the webserver. Check a normal php: ```