Download the PHP package artisan-build/parfait without Composer

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

A framework-agnostic, component-based TUI layout and rendering system for PHP terminal applications.


Why Parfait?

Building a terminal UI usually means hand-managing ANSI codes, cursor math, and Unicode width edge cases. Parfait gives you a declarative, component-based API instead โ€” you describe the UI as a tree of components, and Parfait renders it to a string.

Parfait layers cleanly on top of Laravel Prompts for input/render loops, but depends on neither Laravel nor Prompts โ€” you can drive it from any PHP terminal program.

Requirements

Installation

Quick Start

Every component knows the space it has via a Container, and renders to a string you print yourself:

Composing a layout

Layout arranges child components and hands each one a correctly-sized Container:

Components

Component Purpose
Text / Stack Inline styled text and vertical content composition
Panel Bordered / sidebar / minimal containers with header, body, footer
Modal Overlay dialogs with shadow rendering (via portals)
Toast Transient notifications
Accordion Expandable tree-style navigation
SelectList Scrollable, selectable lists
FileTree Filesystem browser with search and exclude patterns
Input / TextArea Single- and multi-line text entry
CommandLine Command-palette style input
ProgressBar Determinate progress display
StatusBar / AppHeader Chrome for the top and bottom of the screen
NodeCanvas Node-graph visualization with automatic layout

Each component lives in src/Components/ alongside a co-located *Renderer where rendering is non-trivial โ€” see Architecture.

Architecture

Parfait uses a co-located renderer pattern:

This keeps rendering logic isolated and makes components trivial to test โ€” construct one, set its container, assert on the rendered string. The base Component provides styling helpers (applyStyle, width/truncate utilities), view-state storage, and the portal hook.

See DESIGN.md for the full design rationale.

Documentation

The docs/ directory covers each subsystem in depth:

  1. Introduction
  2. Components
  3. Layouts
  4. Styles
  5. Navigation
  6. View State
  7. Events
  8. Testing
  9. Portals

Testing

Components are pure functions, so tests need no terminal or framework:

Run the suite:

Contributing

Contributions are welcome โ€” see CONTRIBUTING.md for the dev setup, coding standards, and quality gates.

License

Parfait is open-source software licensed under the MIT license.


All versions of parfait with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
soloterm/grapheme Version ^1.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 artisan-build/parfait contains the following files

Loading the files please wait ...