Download the PHP package equites/core without Composer

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

Core PHP framework

A lightweight, modular framework focused on keeping things simple while providing the essentials for building APIs and apps.

This repository contains the Core runtime (routing, controllers, ActiveRecord, config, etc.) and a minimal example app showing how to wire it up.

General

File structure (recommended for apps using Core)

Backend

The backend framework is LausEquites/Core (this repo). Your application code lives in your own repository; it consumes Core as a dependency and follows the structure and conventions below.

Project file structure (backend)

See the example app under the example/ directory for a minimal working setup.

Controllers

Controller basics

Controllers are linked to routes declared in an XML file (config/structure.xml). The XML is hierarchical with a root element mapping to the path /. The router resolves controllers by walking this tree.

Supported XML attributes:

Example XML:

Path to class resolution:

Controller classes

If your controller extends Core\Controller\Json, you can return any data; the Json controller will set the Content-Type and JSON-encode non-string responses.

HTTP method dispatch:

Example: GET /api/users resolves to NAMESPACE\Controllers\Users::GET

Lifecycle hooks:

Errors:

Controller methods

Example

A minimal example is provided under example/:

Quick start (from example/):

Core\Router reference

The Core\Router is a minimal XML-driven router that maps request URIs to controller classes and dispatches them.

What it does:

404 behavior:

Path inspection:

Wiring:

Core\Controller reference

The Core\Controller class is the lightweight base used by the router to invoke your controller methods.

Key responsibilities:

Request body handling:

Router parameters:

Owning parameters and _PARAMS dispatch:

Dispatch semantics:

Error handling:

Tip: If you extend Core\Controller\Json, non-string return values from your action methods will be JSON-encoded automatically and the Content-Type: application/json header will be set.

Core\Controller\Json reference

Core\Controller\Json is a convenience base class for building JSON APIs.

What it does:

Usage:

Error helper:

How it works:

Core\ActiveRecord reference

Core\ActiveRecord is a lightweight base for simple table-backed models. Subclass it and define:

Supported $_typeMap types:

Loading records:

Hydration/mapping:

Change tracking and persistence:

Notes:

Core\Config reference

Core\Config provides a lazy-loading accessor for your application configuration.

What it does:

Expected bootstrap:

Config file format (example):

Or as an object:

API:

Usage:

Core\DB reference

Core\DB provides a simple PDO factory and per-request singleton used by Core components (e.g., ActiveRecord).

What it does:

Configuration:

Examples: Array-style config

Object-style config

Usage:

Core\Vault reference

Core\Vault is a tiny in-memory key-value store for the duration of a single PHP request. It helps components share ephemeral data without global variables.

What it does:

Notes:

API:

Example:


All versions of core with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-json Version *
ext-pdo Version *
ext-simplexml 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 equites/core contains the following files

Loading the files please wait ...