Download the PHP package quellabs/canvas without Composer

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

Canvas

Packagist

A modern, lightweight PHP framework that gets out of your way. Write clean controllers with route annotations, query your database with an intuitive ORM, and let contextual containers handle the complexity. Built to work seamlessly alongside your existing PHP codebase - modernize incrementally without breaking what already works.

What Makes Canvas Different

Quick Start

Installation

Bootstrap (public/index.php)

This bootstrap file is automatically generated when using the skeleton package. If you're not using the skeleton package, you'll need to create this file manually.

Controllers with Route Annotations

Canvas automatically discovers controllers and registers their routes using annotations:

ObjectQuel ORM

ObjectQuel lets you query data using syntax that feels natural to PHP developers. Inspired by QUEL (a declarative query language from early relational databases), it bridges traditional database querying with object-oriented programming.

Simple Entity Operations

Advanced ObjectQuel Queries

For complex queries, ObjectQuel provides a natural language syntax:

Key Components

ObjectQuel Features

Legacy Integration

Canvas is designed to work seamlessly alongside existing PHP codebases, allowing you to modernize your applications incrementally without breaking existing functionality. The legacy integration system provides a smooth migration path from traditional PHP applications to Canvas.

Quick Start with Legacy Code

Start using Canvas today in your existing PHP application. No rewrites required - Canvas's intelligent fallthrough system lets you modernize at your own pace.

First, enable legacy support by updating your public/index.php:

That's it! Your existing application now has Canvas superpowers while everything continues to work exactly as before.

Using Canvas Services in Legacy Files

Now you can immediately start using Canvas services in your existing files:

How Route Fallthrough Works

Canvas uses an intelligent fallthrough system that tries Canvas routes first, then automatically looks for corresponding legacy PHP files:

Custom File Resolvers

If your legacy application has a different file structure, you can write custom file resolvers:

Legacy Preprocessing

Canvas includes preprocessing capabilities to handle legacy PHP files that use common patterns like header(), die(), and exit() functions:

What preprocessing does:

Important limitation: Preprocessing only applies to the main legacy file, not to included/required files. Files included by legacy scripts may need refactoring if they use these functions.

Benefits of Legacy Integration

Advanced Features

Route Validation & Wildcards

Available validators: int, alpha, alnum, slug, uuid, email

Route Prefixes

Aspect-Oriented Programming

Canvas provides true AOP for controller methods, allowing you to separate crosscutting concerns from your business logic. Aspects execute at different stages of the request lifecycle.

Creating Aspects

Aspects implement interfaces based on when they should execute:

Applying Aspects

Class-level aspects apply to all methods in the controller:

Method-level aspects apply to specific methods:

Aspect Parameters

Pass configuration to aspects through annotation parameters:

The aspect receives these as constructor parameters:

Execution Order

Aspects execute in a predictable order:

  1. Before Aspects - Authentication, validation, rate limiting
  2. Around Aspects - Caching, transactions, timing
  3. After Aspects - Logging, response modification

Inherited Aspects

Build controller hierarchies with shared crosscutting concerns:

Form Validation

Canvas provides a powerful validation aspect that separates validation concerns from business logic:

Creating Validation Classes

Auto-Response for APIs

Enable automatic JSON error responses for API endpoints:

Contextual Services

Use different implementations based on context:

CLI Commands

Canvas includes a command-line interface called Sculpt for managing your application:

Route Management

Asset Publishing

Canvas provides a powerful asset publishing system to deploy configuration files, templates, and other resources:

Key features:

Why Canvas?

Contributing

We welcome contributions! Here's how you can help improve Canvas:

Reporting Issues

Contributing Code

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Follow PSR-12 coding standards
  4. Add tests for new functionality
  5. Update documentation for new features
  6. Submit a pull request

License

Canvas is open-sourced software licensed under the MIT license.


All versions of canvas with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-mysqli Version *
ext-pdo Version *
ext-curl Version *
ext-gd Version *
ext-fileinfo Version *
monolog/monolog Version *
quellabs/contracts Version ^1.0
quellabs/discover Version ^1.
quellabs/dependency-injection Version ^1.
quellabs/sculpt Version ^1.
quellabs/signal-hub Version ^1.
quellabs/canvas-smarty Version ^1.
quellabs/annotation-reader Version ^1.
symfony/http-foundation Version *
dragonmantank/cron-expression 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 quellabs/canvas contains the following files

Loading the files please wait ....