PHPackages                             khatriafaz/laravel-ensure-production - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. khatriafaz/laravel-ensure-production

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

khatriafaz/laravel-ensure-production
====================================

This package can give you helper functions to run python files right from PHP.

v1.0(6y ago)104[1 issues](https://github.com/khatriafaz/laravel-ensure-production/issues)MITPHPCI failing

Since Feb 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/khatriafaz/laravel-ensure-production)[ Packagist](https://packagist.org/packages/khatriafaz/laravel-ensure-production)[ RSS](/packages/khatriafaz-laravel-ensure-production/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Ensure Production
=================

[](#ensure-production)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b5c8e2d78d002ccc38a7c73f6b648f961cece4377d8dc1b59902944e1bb84358/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b68617472696166617a2f6c61726176656c2d656e737572652d70726f64756374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/khatriafaz/laravel-ensure-production)[![Build Status](https://camo.githubusercontent.com/1d68d1dbafa7d5fb074989fc229a9c35ec0ba80c50ec8d685d7c7fcd24d65952/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b68617472696166617a2f6c61726176656c2d656e737572652d70726f64756374696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/khatriafaz/laravel-ensure-production)[![Quality Score](https://camo.githubusercontent.com/e524e0d7b5a6a4d9d6318b49eb7a3bc30b7712c0288134b308572f8ab23df7c9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b68617472696166617a2f6c61726176656c2d656e737572652d70726f64756374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/khatriafaz/laravel-ensure-production)[![Total Downloads](https://camo.githubusercontent.com/aa4d3d794f115d0a057f451321f2ce113fc43217658d47a84e556156aac5a562/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b68617472696166617a2f6c61726176656c2d656e737572652d70726f64756374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/khatriafaz/laravel-ensure-production)

Add this package to your project and configure domains where the environment must stay only production. That's it. The you don't have to remember where to update the env or a specific config for production domains.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require khatriafaz/laravel-ensure-production

```

You can publish the config to change to configured domains for production:

```
php artisan vendor:publish --provider="Khatriafaz\EnsureProductionServiceProvider"

```

You will find a new config published `ensureproduction.php`. You should modify the domains array to list your domains:

```
return [
	/**
	 *	The domains for production must be added to this array
	 */
	'domains' => [
		 'domain.com'
	],

	'override_config' => [
		/**
		 *	You can override config variables for
		 *	the configured domains above
		 */

		 'app.name' => 'Laravel'
	]
];
```

And that's it, the configured domains will now work on the production configuration always.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Afaz Khatri](https://github.com/khatriafaz)
- [Rakshit Patel](https://github.com/rakshitbharat)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2289d ago

### Community

Maintainers

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

---

Top Contributors

[![khatriafaz](https://avatars.githubusercontent.com/u/19237753?v=4)](https://github.com/khatriafaz "khatriafaz (7 commits)")[![rakshitbharat](https://avatars.githubusercontent.com/u/17176729?v=4)](https://github.com/rakshitbharat "rakshitbharat (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/khatriafaz-laravel-ensure-production/health.svg)

```
[![Health](https://phpackages.com/badges/khatriafaz-laravel-ensure-production/health.svg)](https://phpackages.com/packages/khatriafaz-laravel-ensure-production)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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