Download the PHP package seekquarry/atto without Composer
On this page you can find all versions of the php package seekquarry/atto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download seekquarry/atto
More information about seekquarry/atto
Files in seekquarry/atto
Package atto
Short Description Single file, pure PHP web server and web routing engine
License GPL-3.0-or-later
Homepage https://www.seekquarry.com/
Informations about the package atto
Atto Servers
Atto is a collection of single file, low dependency, pure PHP servers and routing engines. Currently, Atto has two server classes: WebSite, a pure PHP web server and web routing engine and GopherSite, a pure PHP gopher server and gopher routing engine.
-
Atto Servers can be used to route requests, and hence, serve as a micro framework for use under a traditional servers such as Apache, nginx, or lighttpd.
-
Atto can be used as a standalone server for apps created using its routing facility.
-
Atto is request event-driven, supporting asynchronous I/O for web traffic.
- Unlike similar PHP software, as a Web or Gopher Server, it instantiates traditional PHP superglobals like $_GET, $_POST, $_REQUEST, $_COOKIE, $_SESSION, $_FILES, etc and endeavors to make it easy to code apps in a rapid PHP style.
As a standalone Server:
- Atto supports timers for background events.
- Atto handles sessions in RAM.
- Atto has File I/O methods fileGetContents and filePutContents which cache files using the Marker algorithm.
Usage
Installation
Atto Server has been tested on PHP 5.5, PHP 7, and HHVM. HTTPS support does not currently work under HHVM.
To install the software one should have PHP installed. One can then
git clone
the project or download the ZIP file off of GitHub.
To use Atto Server in your project, add the lines:
to the top of your project file. (GopherSite should be used if you want a
gopher server) If you
don't have the use
line, then to
refer to the Website class you would need to add the whole namespace path.
For example,
If you use composer, you can require Atto Servers using the command:
You should then do composer install
or composer update
.
Requiring "vendor/autoload.php"
should then suffice to allow
Atto Servers to be autoloaded as needed by your code.
More Examples
The examples folder of this project has a sequence of examples illustrating the main features of the Atto Servers.
You can test out a given example, by using the index.php script in the root project folder. For example,
would run the first example.
All versions of atto with dependencies
ext-pcre Version *
ext-spl Version *
ext-zip Version *
lib-pcre Version *