PHPackages                             exs/silex-darklaunch-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. exs/silex-darklaunch-provider

ActiveLibrary[Framework](/categories/framework)

exs/silex-darklaunch-provider
=============================

Dark launch provider bundle for Silex2

0767PHP

Since Aug 13Pushed 10y ago11 watchersCompare

[ Source](https://github.com/ExSituMarketing/EXS-silex-darklaunch-provider)[ Packagist](https://packagist.org/packages/exs/silex-darklaunch-provider)[ RSS](/packages/exs-silex-darklaunch-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

EXS-silex-darklaunch-provider
=============================

[](#exs-silex-darklaunch-provider)

Provides darklaunch ability based on user ips.

Installing the EXS-silex-darklaunch-provider in a Silex project
---------------------------------------------------------------

[](#installing-the-exs-silex-darklaunch-provider-in-a-silex-project)

The installation process is actually very simple. Set up a Silex project with Composer.

Once the new project is set up, open the composer.json file and add the exs/silex-darklaunch-provider as a dependency:

```
//composer.json
//...
"require": {
        //other bundles
        "exs/silex-darklaunch-provider": "@dev"
```

Or you could just add it via the command line:

```
$ composer.phar require exs/silex-darklaunch-provider ~1.0@dev

```

Save the file and have composer update the project via the command line:

```
php composer.phar update
```

Composer will now update all dependencies and you should see our bundle in the list:

```
  - Installing exs/silex-darklaunch-provider (dev-master 463eb20)
    Cloning 463eb2081e7205e7556f6f65224c6ba9631e070a
```

Update the app.php to include the EXS-silex-darklaunch-provider provider:

```
//app.php
//...
$app->register(new \EXS\DarklaunchProvider\Providers\Services\DarklaunchProvider());
```

Add ips to active dark launched functions or services in config.php:

```
//...
$app['exs.active.ips'] = array(
    '127.0.0.1',
    MORE IPS HERE
);
//...
```

USAGE
-----

[](#usage)

Declare the service

```
//...
use EXS\DarklaunchProvider\Services\DarklaunchService;

$darkLauncher = new DarklaunchService(ARRAY_OF_ACTIVE_IPS);
//...

// or inject the service in your service provider

//...
use Pimple\ServiceProviderInterface;
use Pimple\Container;

class YourServiceProvider implements ServiceProviderInterface
{
    public function register(Container $container)
    {
        $container[YOUR_SERVICE_PROVIDER_NAME] = ( function ($container) {
            return new YOUR_SERVICE_PROVIDER_LOCATION($container['exs.serv.darklaunch']);
        });
    }
}

// in your service constructor
public function __construct(DarklaunchService $darklaunchService)
{
    $this->darklaunchService = $darklaunchService;
}
//...
```

Wrap the function or service to be dark launched and triggered by ip

```
//...
if($darkLauncher->isActiveIp()) {
    FUNCTION_TO_BE_DARKLAUNCHED
}

// or if you already know the user ip

if($darkLauncher->isActiveIp(USER_IP_HERE)) {
    FUNCTION_TO_BE_DARKLAUNCHED
}
//...
```

#### Contributing

[](#contributing)

Anyone and everyone is welcome to contribute.

If you have any questions or suggestions please [let us know](http://www.ex-situ.com/).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/af284ff600087e33c35e00252ade1cc1dc3987f969661b91b036254dbe4bbb9c?d=identicon)[rumpranger](/maintainers/rumpranger)

---

Top Contributors

[![slee1803](https://avatars.githubusercontent.com/u/10144066?v=4)](https://github.com/slee1803 "slee1803 (4 commits)")[![rumpranger](https://avatars.githubusercontent.com/u/718301?v=4)](https://github.com/rumpranger "rumpranger (1 commits)")

### Embed Badge

![Health badge](/badges/exs-silex-darklaunch-provider/health.svg)

```
[![Health](https://phpackages.com/badges/exs-silex-darklaunch-provider/health.svg)](https://phpackages.com/packages/exs-silex-darklaunch-provider)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
