Download the PHP package fyre/engine without Composer
On this page you can find all versions of the php package fyre/engine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package engine
FyreEngine
FyreEngine is a free, open-source engine library for PHP.
Table Of Contents
- Installation
- Basic Usage
- Methods
- Attributes
- Global Functions
Installation
Using Composer
In PHP:
Basic Usage
$loaderis a Loader.
Methods
This class extends the Container class.
Boot
Boot the application.
Middleware
Build application middleware.
$queueis a MiddlewareQueue.
Attributes
Attributes can be used to provide context when resolving values from the Container.
Cache
Load a shared Cacher instance.
Config
Retrieve a value from the config using "dot" notation.
Current User
Get the current user.
DB
Load a shared Connection instance.
Encryption
Load a shared Encrypter instance.
Log
Load a shared Logger instance.
Load a shared Mailer instance.
ORM
Load a shared Model instance.
Route Argument
Retrieve an argument from the loaded route.
Global Functions
__
Get a language value.
$keyis a string representing the key to lookup.$datais an array containing data to insert into the language string.
Abort
Throw an Exception.
$codeis a number representing the status code, and will default to 500.$messageis a string representing the error message, and will default to "".
App
Load a shared Engine instance.
You can also load other shared class instances.
$aliasis a string representing the alias.$argumentsis an array containing the named arguments for the class constructor.
Asset
Generate a URL for an asset path.
$pathis a string representing the asset path.$optionsis an array containing the route options.fullBaseis a boolean indicating whether to use the full base URI and will default to false.
Auth
Load a shared Auth instance.
Authorize
Authorize an access rule.
$ruleis a string representing the access rule name or Policy method.
Any additional arguments supplied will be passed to the access rule callback or Policy method.
Cache
Load a shared Cacher instance.
$keyis a string representing the Cacher key, and will default toCache::DEFAULT.
Can
Check whether an access rule is allowed.
$ruleis a string representing the access rule name or Policy method.
Any additional arguments supplied will be passed to the access rule callback or Policy method.
Can Any
Check whether any access rule is allowed.
$rulesis an array containing access rule names or Policy methods.
Any additional arguments supplied will be passed to the access rule callbacks or Policy methods.
Can None
Check whether no access rule is allowed.
$rulesis an array containing access rule names or Policy methods.
Any additional arguments supplied will be passed to the access rule callbacks or Policy methods.
Cannot
Check whether an access rule is not allowed.
$ruleis a string representing the access rule name or Policy method.
Any additional arguments supplied will be passed to the access rule callback or Policy method.
Collect
Create a new Collection.
$sourcecan be either an array, a Closure that returns a Generator, or a Traversable or JsonSerializable object.
Config
Load a shared Config instance.
You can also retrieve a value from the config using "dot" notation.
$keyis a string representing the key to lookup.$defaultis the default value to return, and will default to null.
DB
Load a shared Connection instance.
$keyis a string representing the Connection key, and will default toConnectionManager::DEFAULT.
DD
Dump and die.
Dump
Dump data.
Create an Email.
$keyis a string representing the Mailer key, and will default to Mail::DEFAULT.
Encryption
Load a shared Encrypter instance.
$keyis a string representing the Encrypter key, and will default toEncryption::DEFAULT.
Env
Retrieve an environment variable.
$nameis a string representing the variable name.$defaultis the default value to return, and will default to null.
Escape
Escape characters in a string for use in HTML.
$stringis the string to escape.
Json
Create a new ClientResponse with JSON data.
$datais the data to send.
Log Message
Log a message.
$typeis a string representing the log level.$messageis a string representing the log message.$datais an array containing data to insert into the message string.
The $type must be one of the supported log levels.
Logged In
Determine if the current user is logged in.
Model
Load a shared Model instance.
$aliasis a string representing the model alias.
Now
Create a new DateTime set to now.
Queue
Push a job to a Queue.
$classNameis a string representing the job class.$argumentsis an array containing arguments that will be passed to the job.$optionsis an array containing options for the Message.configis a string representing the configuration key, and will default to "default".queueis a string representing the Queue name, and will default to "default".methodis a string representing the class method, and will default to "run".delayis a number representing the number of seconds before the job should run, and will default to 0.expiresis a number representing the number of seconds after which the job will expire, and will default to 0.
Redirect
Create a new RedirectResponse.
$uriis a Uri or string representing the URI to redirect to.$codeis a number representing the header status code, and will default to 302.$optionsis an array containing configuration options.
Request
Load a shared ServerRequest instance.
You can also retrieve value from the $_POST array by passing arguments to this function.
$keyis a string representing the array key using "dot" notation.$asis a string representing the value type, and will default to null.
Response
Create a new ClientResponse.
Route
Generate a URL for a named Route.
$nameis a string representing the route alias.$argumentsis an array containing the route arguments.?is an array containing route query parameters.#is a string representing the fragment component of the URI.
$optionsis an array containing the route options.fullBaseis a boolean indicating whether to use the full base URI and will default to false.
Session
Load a shared Session instance.
Retrieve a value from the session.
$keyis a string representing the session key.
You can also set a session value by including a second argument.
Type
Load a shared TypeParser instance.
You can also get the mapped Type class for a value type.
$typeis a string representing the value type.
User
Get the current user.
View
Render a View template.
$templateis a string representing the template file.$datais an array containing data to pass to the template.$layoutis a string representing the layout file, and will default to null.
If the $layout is set to null, it will use the App.defaultLayout option from the Config.
All versions of engine with dependencies
fyre/auth Version ^3.0
fyre/cache Version ^5.1
fyre/command Version ^6.0
fyre/collection Version ^1.0
fyre/color Version ^2.1
fyre/config Version ^4.0
fyre/console Version ^4.0
fyre/container Version ^1.0
fyre/csp Version ^7.0
fyre/csrf Version ^5.0
fyre/curl Version ^2.0
fyre/datetime Version ^3.3
fyre/db Version ^6.0
fyre/encryption Version ^5.0
fyre/entity Version ^6.0
fyre/error Version ^6.0
fyre/event Version ^4.1
fyre/forge Version ^5.0
fyre/formatter Version ^4.1
fyre/iterator Version ^5.0
fyre/lang Version 5.0
fyre/log Version ^6.0
fyre/mail Version ^4.0
fyre/make Version ^3.0
fyre/math Version ^2.0
fyre/middleware Version ^6.0
fyre/migration Version ^6.0
fyre/orm Version ^11.0
fyre/path Version ^2.0
fyre/pdf Version ^1.0
fyre/period Version ^3.1
fyre/promise Version ^3.0
fyre/queue Version ^3.0
fyre/ratelimiter Version ^5.0
fyre/router Version ^7.0
fyre/server Version ^4.0
fyre/session Version ^5.0
fyre/stream Version ^2.0
fyre/string Version ^2.0
fyre/timer Version ^4.0
fyre/view Version ^10.0