Skip to content

Releases: effectra/framework

v2.0.0

12 Jul 13:51

Choose a tag to compare

#NEW
Localization The Localization class handles translation of strings based on the selected language.
Cache provides cache implementations based on the PSR-16 (Simple Cache) standard.
Structure The class is responsible for scanning and validating the directory structure of an application, It ensures that the required directories and subdirectories are present.
#FIXING
ConsoleBlock::warning()

v1.2.0

04 Jul 18:35
09c6275

Choose a tag to compare

New

GitHubRepositoryManager :

Definition:
The GitHubRepositoryManager class is a PHP class that provides functionality to manipulate the composer.json file and execute the necessary commands to include a GitHub repository as a dependency in a PHP project.

Description:
The GitHubRepositoryManager class simplifies the process of adding a GitHub repository as a dependency in a PHP project that uses Composer for package management. It abstracts away the manual steps involved in updating the composer.json file, configuring GitHub access tokens (in the case of private repositories), and running the necessary composer commands.

The class exposes a single public method, run(), which takes the GitHub repository name and an optional personal access token as arguments. When invoked, this method performs the following actions:

  1. Updates the composer.json file by adding the specified GitHub repository to the require section and creating a corresponding entry in the repositories section.
  2. Configures the GitHub access token in Composer, if provided, using the composer config command.
  3. Executes the composer install command, which downloads the package and its dependencies.

By utilizing the GitHubRepositoryManager class, developers can streamline the process of including GitHub repositories as dependencies in their PHP projects. It reduces manual configuration and helps automate the necessary steps, making it easier to manage external dependencies.

Correct

Namespaces:

  1. Class Effectra\Core\Providers\MailerProvider is comply now with psr-4 autoloading standard.

  2. Class Effectra\Core\Server\Docker is comply now with psr-4 autoloading standard.

Methods in Core Classes

  1. update method AppRoute/handle to accept uri path '' as '/' in http://localhost:[PORT]/ server

v1.1.0

29 Jun 18:58

Choose a tag to compare

Add new features :

  • Class Validator: Extends the Valitron\Validator class to provide additional validation capabilities.
  • New Authentication methods:
  • isAuthenticated: Validate if a user is authenticated based on the provided login token.
  • getUserByToken: Retrieve the user associated with the provided login token.

v1.0.1

21 Jun 19:22

Choose a tag to compare

CHANGELOG:
View Template engine service: require to include {{WEB_ENCORE_JS}} and {{WEB_ENCORE_CSS}} if you want use webencore

  • please run npm install then npm run watch

v1.0.0

20 Jun 14:29

Choose a tag to compare

Add package files