Download the PHP package yggdrasilcloud/core without Composer

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

YggdrasilCloud API

REST API for photo management built with Domain-Driven Design (DDD) architecture using Symfony 7.3.

Features

Tech Stack

Project Structure

Getting Started

Prerequisites

Installation

  1. Clone the repository:

  2. Start the services:

  3. Create the database and run migrations:

  4. The API is now available at http://localhost:8000

Optional Packages

YggdrasilCloud uses a modular architecture. Some features are available as optional packages:

Storage S3 (AWS S3 / MinIO)

For S3-compatible storage instead of local filesystem:

Then configure your .env:

See Storage DSN Configuration for more details.

API Endpoints

Health Check

Folders

Photos

Configuration

Environment Variables

Storage DSN Configuration

The storage system uses a flexible DSN-based configuration that allows you to switch between different storage backends (local filesystem, S3, FTP, etc.) by simply changing an environment variable.

DSN Format

Built-in Driver: Local Filesystem

Basic usage:

With custom limits:

Options:

External Drivers via Bridges

For cloud storage or other backends, install the corresponding bridge package:

AWS S3 / MinIO:

Note: Set your S3 credentials using the standard environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Do not include credentials in the DSN.

FTP/FTPS:

Google Cloud Storage:

Bridge Auto-Discovery

Storage bridges are automatically discovered via Symfony's service tag storage.bridge. When you install a bridge package, it registers itself automatically—no manual configuration needed.

Missing Bridge Error:

If you try to use a storage driver without installing its bridge, you'll see:

Creating Custom Bridges

To create your own storage bridge (e.g., for Azure Blob, Dropbox, etc.), implement StorageBridgeInterface and tag your service:

Then use it:

Dependency Injection Configuration

The storage system integrates seamlessly with Symfony's DI container using a factory pattern:

Service Configuration (config/services.yaml):

How it works:

  1. StorageFactory receives all services tagged with storage.bridge via !tagged_iterator
  2. FileStorageInterface is created by calling StorageFactory::create() with the STORAGE_DSN environment variable
  3. The factory parses the DSN and either:
    • Returns a built-in adapter (e.g., LocalStorage for local://)
    • Searches registered bridges for external drivers (e.g., S3, FTP)
  4. The resolved storage adapter is injected wherever FileStorageInterface is type-hinted

Usage in your code:

No need to know which storage backend is used—switch from local to S3 by simply changing STORAGE_DSN!

Optional: Logger Integration

LocalStorage supports optional PSR-3 logging for I/O errors (Monolog, etc.):

When configured, I/O errors (file not found, write failures, etc.) are automatically logged with context.

Development

Run Tests

Code Quality

Database Migrations

Testing

The project has comprehensive test coverage:

Test Structure

Run Specific Tests

Architecture Decisions

Why Domain-Driven Design?

Why CQRS?

Why Value Objects?

Why separate repositories for read/write?

Domain Concepts

Aggregates

Value Objects

Domain Events

These events are currently stored in-memory but can be persisted with the Transactional Outbox pattern (see code comments).

Future Enhancements

Documented in Code

Planned Features

Docker Services

FrankenPHP (php)

PostgreSQL (postgres)

CORS Configuration

For multi-client support (web, mobile), CORS is configured to accept requests from:

Contributing

Commit Style

Simple, descriptive commit messages (no conventional commits):

Branch Strategy

License

MIT

Related Repositories


All versions of core with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-ctype Version *
ext-iconv Version *
ext-mbstring Version *
ankitpokhrel/tus-php Version ^2.4
azjezz/psl Version ^4.2
doctrine/dbal Version ^3.10.3
doctrine/doctrine-bundle Version ^2.18
doctrine/doctrine-migrations-bundle Version ^3.5
doctrine/orm Version ^3.5.2
nelmio/cors-bundle Version ^2.6
runtime/frankenphp-symfony Version ^0.2.0
symfony/console Version 7.3.*
symfony/dotenv Version 7.3.*
symfony/flex Version ^2.8.2
symfony/framework-bundle Version 7.3.*
symfony/messenger Version 7.3.*
symfony/mime Version 7.3.*
symfony/runtime Version 7.3.*
symfony/serializer Version 7.3.*
symfony/uid Version 7.3.*
symfony/validator Version 7.3.*
symfony/yaml Version 7.3.*
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 yggdrasilcloud/core contains the following files

Loading the files please wait ...