Skip to content

Releases: yonis-savary/sharp

v0.3 : New configuration system

Pre-release

Choose a tag to compare

@yonis-savary yonis-savary released this 15 Dec 17:56

v0.3 : New configuration system !

Sharp is now configured through PHP Files, this system is useful to create configuration in your IDE (Autocompletion, PHP Doc) and use "complex" objects or class instances directly in your configuration

Here is an example of configuration (now in sharp.php)

<?php

use YonisSavary\Sharp\Classes\Data\Configuration\DatabaseConfiguration;
use YonisSavary\Sharp\Classes\Extras\Configuration\AssetServerConfiguration;
use YonisSavary\Sharp\Classes\Security\Configuration\AuthenticationConfiguration;
use YonisSavary\Sharp\Core\Configuration\ApplicationsToLoad;
use YonisSavary\Sharp\Tests\Root\TestApp\Models\TestUser;

return [
    new ApplicationsToLoad(
        "TestApp"
    ),

    new DatabaseConfiguration(
        "sqlite"
    ),

    new AuthenticationConfiguration(
        TestUser::class,
        "login",
        "password",
        "salt"
    ),

    new AssetServerConfiguration(
        nodePackages: [
            "bootstrap-icons"
        ]
    )
];

v0.2

v0.2 Pre-release
Pre-release

Choose a tag to compare

@yonis-savary yonis-savary released this 18 Nov 21:33

v0.2 ! Utilities and some new features

Biggest additions

  • Simple migration system
  • Autoloader improvements
  • PSR-3 support

With a lot of little others improvements

Full Changelog: 0.1...0.2

0.1

0.1 Pre-release
Pre-release

Choose a tag to compare

@yonis-savary yonis-savary released this 09 Oct 12:52

First preview ! 🥳

This Sharp version is the first preview of the project, it should be possible to require it with composser !