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.

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 atto

Atto is a collection of single-file, low-dependency, pure-PHP servers and routing engines. Each server is one file you drop into a project, configure with a few chained setters, and start with a listen() call. No Composer modules required. No build step.

What's in the box:

A few things every Atto server has in common: request-event-driven (one PHP process, async I/O); the $site->get('/', ...) routing API carries through where it makes sense; familiar superglobals like $_GET, $_POST, $_SESSION, $_FILES are populated for the protocols where that idiom fits. Sessions live in RAM, timers fire on a schedule, and file I/O goes through caching fileGetContents / filePutContents helpers.

Hello, World

Run php index.php, point a browser at http://localhost:8080/, done. The other servers follow the same shape: swap WebSite for FtpSite or SshSite or whichever, configure with chained setters, call listen().

Installation

Atto runs on PHP 8+. HTTPS works on any PHP build with ext-openssl; SshSite additionally needs ext-sodium.

Get the code:

Then drop one require line into your project:

Composer works too:

Then require "vendor/autoload.php" and the Atto Site classes autoload.

Examples

The examples/ folder has a numbered tour: 01-18 are WebSite features (routing, forms, sessions, WebSockets, streaming, HTTP/3, benchmarks), and 19 onward are full-protocol demos:

To run any example:

Each demo's index.php carries a header docblock describing its config, demo credentials, and a "How to connect" pointer for real-world clients (curl, FileZilla, ssh, swaks, etc.). Demos 22-25 also spawn a companion web UI at http://localhost:8080/ so you can poke at the server from your browser without leaving PHP.

Going Further

The demo webui.php files are full worked examples of using an Atto Site class as a library: client classes, transcripts, error handling, all in one file. Copy a Site class into your own project, write your own routes, and you're off.

Atto's whole pitch is single-file, no friction. Skim the source of any Site class -- they're documented top to bottom -- and write the server your project actually needs.


All versions of atto with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
ext-openssl Version *
ext-pcre Version *
ext-sodium Version *
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 seekquarry/atto contains the following files

Loading the files please wait ...