Download the PHP package alvarez/concrete-php without Composer

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

ConcretePHP — Service Layer & DTO Abstractions

Packagist Version PHP Version License

A lightweight, pragmatic set of abstractions to organize business logic in Laravel: a minimal Service Layer (AbstractModelService) and a compact DTO system (AbstractDTO).


Table of Contents

  1. Overview
  2. Features
  3. Requirements
  4. Installation
  5. Quick Start (Examples)
  6. Deep Dive — API Reference

    • AbstractDTO
    • AbstractModelService
    • IsDTO contract
  7. Behavior & Implementation Notes (the "magic")
  8. Extending & Customization
  9. Testing (outside Laravel)
  10. Best Practices
  11. Packagist / Composer Publishing Tips
  12. Contributing
  13. Changelog
  14. License

1. Overview

ConcretePHP focuses on two complementary building blocks:

This combination reduces coupling between HTTP layer and persistence, makes unit-testing trivial, and keeps your controllers focused on request/response logic.


2. Features


3. Requirements


4. Installation

If you plan to run tests or use the package outside Laravel, install Eloquent components:


5. Quick Start (Examples)

DTO Definition

Service Definition

Create a User (DTO or array)

Find, Update, and Access Model


6. Deep Dive — API Reference

Alvarez\ConcretePhp\Contracts\IsDTO

This contract ensures DTOs can be converted to/from arrays and JSON. Services rely on toArray() to persist DTO data.

Alvarez\ConcretePhp\Data\AbstractDTO

Public methods provided:

Notes & caveats

Alvarez\ConcretePhp\Services\AbstractModelService

Public methods provided:

Behavior details


7. Behavior & Implementation Notes (the "magic")

These are the small, opinionated choices that make ConcretePHP feel magical and at the same time predictable — and why they matter:

8. Extending & Customization

Overriding model path

If your models live outside App\Models, or you want to point to a mock in tests, just override getModelPath():

Add domain methods

A service should contain domain-specific operations, not just CRUD helpers:

Validation & Form Requests

Keep validation responsibility in Form Requests (or a validation layer) and pass a DTO into the service. This keeps the service focused on business logic and persistence.


9. Testing (outside Laravel)

The repository includes example tests which demonstrate how to bootstrap Eloquent in-memory via Illuminate\Database\Capsule\Manager (useful for package tests or library CI):

Example (conceptual):

This pattern is included in the test-suite so Continuous Integration can verify package behavior without a full Laravel app.


10. Best Practices


11. Packagist / Composer Publishing Tips

Suggested composer.json excerpt for the package root:


12. Contributing

Contributions are welcome!

Suggested CI checks:


13. Changelog

See CHANGELOG.md for details. Keep the first release note brief:


14. License

MIT — see LICENSE for full text.


If you want, I can:

Tell me which of the above you want next and I’ll add them directly to the repository content.


All versions of concrete-php with dependencies

PHP Build Version
Package Version
Requires illuminate/database Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.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 alvarez/concrete-php contains the following files

Loading the files please wait ...