Download the PHP package fyre/server without Composer

On this page you can find all versions of the php package fyre/server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package server

FyreServer

FyreServer is a free, open-source immutable HTTP server request/response library for PHP.

Table Of Contents

Installation

Using Composer

Server Requests

This class extends the Request class.

Default configuration options will be resolved from the "App" key in the Config.

Autoloading

It is recommended to bind the ServerRequest to the Container as a singleton.

Any dependencies will be injected automatically when loading from the Container.

Server Request Methods

Get Cookie

Get a value from the $_COOKIE array.

If the $key argument is omitted, this method will return an array containing all values.

Get Data

Get a value from the $_POST array or JSON body data.

If the $key argument is omitted, this method will return an array containing all values.

Get Default Locale

Get the default locale.

Get Environment

Get a value from the $_ENV array.

Get File

Get an UploadedFile or array of files from the $_FILE array.

If the $key argument is omitted, this method will return an array containing all files.

Get Json

Get a value from JSON body data.

If the $key argument is omitted, this method will return an array containing all values.

Get Locale

Get the current locale.

Get Post

Get a value from the $_POST array.

If the $key argument is omitted, this method will return an array containing all values.

Get Query

Get a value from the $_GET array.

If the $key argument is omitted, this method will return an array containing all values.

Get Server

Get a value from the $_SERVER array.

If the $key argument is omitted, this method will return an array containing all values.

Get User Agent

Get the user agent.

This method will return a UserAgent.

Is AJAX

Determine whether the request was made using AJAX.

Is CLI

Determine whether the request was made from the CLI.

Is Secure

Determine whether the request is using HTTPS.

Negotiate

Negotiate a value from HTTP headers.

Set Locale

Set the current locale.

The locale must be present in the supportedLocales property of the ServerRequest $options parameter.

Client Responses

This class extends the Response class.

Delete Cookie

Get Cookie

This method will return a Cookie.

Has Cookie

Determine whether a cookie has been set.

No Cache

Set headers to prevent browser caching.

Send

Send the response to the client.

Set Content Type

Set the content type header

Set Cookie

Set a cookie value.

Set Date

Set the date header.

Set JSON

Set a JSON response.

Set Last Modified

Set the last modified date header.

Set XML

Set an XML response.

Download Responses

This class extends the ClientResponse class.

From Binary

Get File

Get the download File.

Redirect Responses

This class extends the ClientResponse class.

Uploaded Files

This class extends the File class.

Client Extension

Get the client extension.

Client MIME Type

Get the client MIME type.

Client Name

Get the client filename.

Error

Get the uploaded error code.

Has Moved

Determine whether the uploaded file has been moved.

Is Valid

Determine whether the uploaded file is valid.

Move To

Move the uploaded file.

This method will return a new File for the moved file.


All versions of server with dependencies

PHP Build Version
Package Version
Requires fyre/config Version ^4.1
fyre/cookie Version ^4.0
fyre/filesystem Version ^2.0
fyre/negotiate Version ^2.0
fyre/request Version ^3.0
fyre/response Version ^3.0
fyre/useragent Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fyre/server contains the following files

Loading the files please wait ....