Git Product home page Git Product logo

toggle-core's Introduction

Pheature Flags
Toggle Core

Latest Version on Packagist Quality Score Type coverage Test Coverage Mutation testing coverage Maintainability Total Downloads

Pheature flags toggle core library, take a look to our main package to see our roadmap and project status.

Installation

Install using composer

composer require pheature/toggle-core

Getting started

See the docs at main docs site.

Contributing

Your contributions are always welcome! Please have a look at the contribution guidelines first.

License

We really believe in the Open Source Software, we built our carers around it, and we feel that we need to return our knowledge to the community. For this reason we release all our packages under BSD-3-Clause licence.

toggle-core's People

Contributors

dependabot[bot] avatar kpicaza avatar p0lemic avatar pcs289 avatar peter279k avatar pheaturebot avatar szepeviktor avatar vblinden avatar xserrat avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

toggle-core's Issues

Add the ability to save events in the write model Feature class

Epic: pheature-flags/pheature-flags#297

We have to store the actions that occurred in the Pheature\Core\Toggle\Write\Feature as events.

Example implementation, of what we are thinking on:

<?php
...
class Feature {
   private array $events = [];

   public function popEvents()
   {
       $events = $this-events;
       foreach($events as $event) {
            $this->apply($event); // not mandatory because we are not doing event sourcing here
       }
       $this->events = [];
       return $events;
   }
}

Add Psalm Types for arrays

Using Psalm types for arrays will give us extra stability by adding strict array typing checks statically.

[toggle-core] Add `ChainFeatureFinder` capable of retrieving features from multiple finders

Epic: pheature-flags/pheature-flags#294

We have to add the ChainFeatureFinder responsible for the retrievement of a feature by its identifier calling on each FeatureFinder injected through the constructor.

It should do the following:

  • It'll have injected an array of FeatureFinder elements.
  • It should call every finder of the array.
  • if the finder returns the feature, it'll return it.
  • if the finder return no results, it'll call to the next finder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.