Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
cmatosbc committed Dec 5, 2024
1 parent 939a0c6 commit 9ec61f8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# PHP Circuit Breaker Library

[![PHPUnit Tests](https://github.com/cmatosbc/alecto/actions/workflows/phpunit.yml/badge.svg)](https://github.com/cmatosbc/alecto/actions/workflows/phpunit.yml) [![PHP Composer](https://github.com/cmatosbc/alecto/actions/workflows/composer.yml/badge.svg)](https://github.com/cmatosbc/alecto/actions/workflows/composer.yml)

A robust PHP implementation of the Circuit Breaker pattern with type safety, metrics tracking, and configurable behavior.

In the depths of Greek mythology, Alecto, one of the three Erinyes or Furies, emerges as a formidable figure. These divine beings were born from the blood of the castrated Uranus, embodying the relentless pursuit of vengeance. Alecto, in particular, is known for her unwavering determination and relentless pursuit of justice.
Expand Down
29 changes: 29 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<ruleset name="Custom PHPCS Configuration">
<description>PHP_CodeSniffer configuration following PSR-12 standards</description>

<!-- Paths to include or exclude from the analysis -->
<file>./src</file>
<exclude-pattern>./vendor</exclude-pattern>

<!-- Use PSR-12 as base -->
<rule ref="PSR12"/>

<!-- Enable auto fixing and configure tools -->
<arg name="colors"/>
<arg value="sp"/>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="75"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="tab-width" value="4"/>
<arg name="encoding" value="utf-8"/>

<!-- Exclude some specific rules if needed -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
</ruleset>

0 comments on commit 9ec61f8

Please sign in to comment.