Download the PHP package atelier/layout without Composer

On this page you can find all versions of the php package atelier/layout. 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 layout

Atelier Layout

Spatial primitives that answer where things go, and return geometry rather than markup.

PHP Version Tests PHPUnit PHPStan Stable License

Describe boxes, tracks, text, padding and constraints; get back frames any renderer can consume. Nothing here emits SVG, HTML, or a DOM, and nothing here names a consumer.

Separating the geometry from the drawing is what lets the same solver serve a chart legend, a diagram node, and a page header. It is the layer atelier/diagram sits on. Backed by an extensive test suite and PHPStan at its highest level.

Text · Charts and boards · Documentation

Installation

Requires PHP 8.3 or later. No dependencies.

Quick start

See Getting started.

Composition

Six primitives, each answering one question about where a child ends up: stacks along one axis, grids on two, alignment inside a box, distribution of what is left over, groups that carry a bounding box, and overlays anchored to a corner.

Track sizes are fixed, content-sized, or flexible, and a grid auto-flows past its column count. See Grid.

Geometry

Immutable values with no behaviour beyond their own maths: Rect, Point, Size, Insets, Bounds, Circle, BoxModel, and a RectIndex for collision and occupancy queries.

Box constraints travel down a node tree during measurement and sizes travel back up, which is what makes a layout solvable in one pass. See Geometry.

Text

Measurement, wrapping, per-line frames, baselines, and overflow, because all five change geometry and none of them are the renderer's business.

The default measurer is deterministic and approximate on purpose: server-side rendering and tests both need stable numbers, and a font engine gives neither. A more precise one is injected through LayoutContext. See Text.

Links between boxes

Where a connection leaves one rectangle, where it enters another, and the right-angle path in between, as points rather than path data.

Label placement avoids solved rectangles deterministically. Graph ranking, obstacle avoidance and edge bundling are deliberately not here. See Links between boxes.

Charts and boards

The recurring furniture: parallel lanes with a reserved header, an edge strip for an axis, and a key made of swatches and labels. Each takes a rectangle and returns placed frames.

See Tracks, bands and legends.

Documentation

The full documentation is published at ateliersvg.com/layout.

Contributing

Contributions are welcome. Visit the project on GitHub to report a bug, suggest a feature, or open a pull request.

Before submitting code, run:

A new public primitive needs exact numeric tests before a consumer depends on it.

Support

Bug reports, security disclosures, and contribution guidelines are collected at ateliersvg.com/support.

Sharing the package or starring it on GitHub helps more than you would think.

License

Atelier Layout is released under the MIT License.


All versions of layout with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-mbstring 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 atelier/layout contains the following files

Loading the files please wait ...