Download the PHP package rcrdortiz/axpecto without Composer

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

✨ Axpecto — A Modern PHP Meta-Framework

GitHub codecov

Axpecto is a powerful meta-framework for modern PHP development. It blends Aspect-Oriented Programming (AOP), dependency injection (DI), and enhanced collections, into a highly composable and extensible architecture designed for AI-augmented development.

With Axpecto, you can:

⚙️ Axpecto is designed not just for developers, but for AI agents to extend, understand, and modify code easily, safely and cost efficiently.


✨ Features at a Glance


📦 Installation

Install via Composer:


🚀 Quickstart

🔁 Functional Collections

Use Axpecto's Klist and Kmap for expressive list handling:

Collections are immutable by default, but can be made mutable with $list->toMutable().

Real-World Example: Extract and format user names

Real-World Example: Group and filter by condition

Real-World Example: Using maybe to conditionally perform a context aware action

Real-World Example: Checking conditions with all and any

Comparison to native PHP:


🧠 Dependency Injection

Axpecto's DI container autowires your services, resolves dependencies via type hints, and supports injection via #[Inject].

You can also register services manually:

Constructor-Based Injection (Preferred)

The most common way to inject dependencies in Axpecto is through the constructor. The container resolves all parameters by type and automatically wires them:

Property Injection (when constructor-based injection is not ideal)

Example: Reusing and re-binding implementations


📍 Aspect-Oriented Programming

You can define annotations that intercept method calls, allowing you to:

The method execution is intercepted by HtmlOutputHandler, which transforms the output into a templated HTML page.


🏗️ Build-Time Annotations (Dynamic Class Generation)

Declare abstract classes with metadata that Axpecto will build into concrete implementations:

Axpecto parses this and auto-generates logic to resolve database access without manual boilerplate.

🧪 Example Build Annotation: #[Service]


⚡ Method Execution Interception

Intercept method calls to apply logic dynamically.

Example: #[Cacheable]

Example: #[Logged]


🗃️ Using #[Repository] in Axpecto

⚠️ The repository feature is under construction and could change.

The #[Repository] annotation in Axpecto allows you to define data access logic declaratively by marking an interface or abstract class as a repository. When the container encounters this class, Axpecto will build the implementation automatically, parsing method names and generating queries based on conventions and entity metadata.

🔍 What #[Repository] Does

When you annotate a class with #[Repository], Axpecto:

  1. Reads the entityClass that this repository manages.
  2. Parses abstract method names to extract conditions (e.g., findByIdAndEmailIsNotNull).
  3. Generates runtime code that:
    • Builds a Criteria object.
    • Maps entity properties to database fields.
    • Calls the appropriate persistence logic.
  4. Injects dependencies like the entity mapper and persistence strategy.

This behavior is defined by the RepositoryBuildHandler, which is automatically injected and associated with the annotation. This defines a CustomerRepository where the methods will be built automatically. When you call:


✅ Basic Example

Axpecto builds the logic to create a Criteria, apply the field conditions, and use the underlying storage to fetch and map the entity.

🧠 Behind the Scenes

The handler responsible is RepositoryBuildHandler, which:

💡 Entity Example

🧪 Tips and Best Practices

🛠 Advanced Ideas

You can extend this concept with:


📊 Use Cases

Here are just a few ways you can use Axpecto:

🖥️ Build a WordPress Plugin Framework

⚙️ Declarative Validation & Security

🚀 AI-Generated Plugins

💡 Scalable Domain Framework

🌟 Developer Experience Enhancements


🔗 Architecture & Philosophy

Axpecto is a meta-framework. It's:


💪 Contributing

Contributions are welcome! Check out the CONTRIBUTING.md and explore /examples for demos.


📄 License

MIT License. See LICENSE for full terms.


All versions of axpecto with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-mysqli Version *
ext-pdo 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 rcrdortiz/axpecto contains the following files

Loading the files please wait ...