Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Acceptance Bundle Laravel Package

atournayre/acceptance-bundle

View on GitHub
Deep Wiki
Context7

Acceptance bundle

The acceptance bundle helps managing software acceptance.


What this bundle for ?

Use this bundle to activate environment for a given period.

Sometimes, you want your customer to have acces to acceptance environment only for 3 or 7 days.

Getting Started

$ composer require atournayre/acceptance-bundle

Configuring

Enable the bundle

# config/bundles.php
return [
    // ...
    Atournayre\AcceptanceBundle\AtournayreAcceptanceBundle::class => ['all' => true],
    // ...
];

Using parameters.yml ?

# app/config/parameters.yml
parameters:
  atournayre_acceptance.is_enabled: true # true to enable / false to disable
  atournayre_acceptance.start_date_time: "2021-01-01 00:00:00" # 2021-01-01 is also valid
  atournayre_acceptance.end_date_time: "2021-01-02 00:00:00" # 2021-01-02 is also valid

Using .env ?

# .env / .env.local.php
return array (
  // ...
  // ACCEPTANCE_IS_ENABLED : true / false
  'ACCEPTANCE_IS_ENABLED' => true,
  // ACCEPTANCE_START_DATETIME : "2021-03-25 00:00:00" / "2021-03-25"
  'ACCEPTANCE_START_DATETIME' => "2021-03-25 00:00:00",
  // ACCEPTANCE_END_DATETIME : "2021-03-25 00:00:00" / "2021-03-25"
  'ACCEPTANCE_END_DATETIME' => "2021-02-29 23:59:59",
  // ...
);
# config/services.yaml
parameters:
  atournayre_acceptance.is_enabled: '%env(ACCEPTANCE_IS_ENABLED)%'
  atournayre_acceptance.start_date_time: '%env(ACCEPTANCE_START_DATETIME)%'
  atournayre_acceptance.end_date_time: '%env(ACCEPTANCE_END_DATETIME)%'

Production

In production, simply disable the bundle.

Using parameters.yml ?

# app/config/parameters.yml
parameters:
  atournayre_acceptance.is_enabled: false

Using .env ?

# .env / .env.local.php
return array (
  // ...
  'ACCEPTANCE_IS_ENABLED' => false,
  // ...
);
# config/services.yaml
parameters:
  atournayre_acceptance.is_enabled: '%env(ACCEPTANCE_IS_ENABLED)%'

Overriding templates

Using Symfony 4.4.* ?

$ mkdir -p templates/bundles/AtournayreAcceptanceBundle
$ cp -r vendor/atournayre/acceptance-bundle/Resources/views/. templates/bundles/AtournayreAcceptanceBundle

Templates are now ready for customization!

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package