worksome / envy Goto Github PK
View Code? Open in Web Editor NEWKeep your .env.example file up to date
License: MIT License
Keep your .env.example file up to date
License: MIT License
Running php artisan envy:sync
yields a weird error:
RuntimeException
None has no value.
at vendor/phpoption/phpoption/src/PhpOption/None.php:45
41▕ }
42▕
43▕ public function get()
44▕ {
➜ 45▕ throw new \RuntimeException('None has no value.');
46▕ }
47▕
48▕ public function getOrCall($callable)
49▕ {
+1 vendor frames
2 [internal]:0
Worksome\Envy\Actions\ReadEnvironmentFile::Worksome\Envy\Actions\{closure}()
+4 vendor frames
7 [internal]:0
Worksome\Envy\Envy::Worksome\Envy\{closure}()
This is in laravel/framework
v8.83.9
and worksome/envy
v0.4.0
I got error Call to undefined function mb_strimwidth() after command
php artisan envy:sync ↙️
1 update for /.env.example 1/1
• CLOCKWORK_REQUESTS_SLOW_THRESHOLD
How would you like to handle these updates? [Add to environment file]:
[0] Add to environment file
[1] Add to exclusions
[2] Cancel
> 0
Environment variables added!
**Error**
Call to undefined function Termwind\ValueObjects\mb_strimwidth()
at vendor/nunomaduro/termwind/src/ValueObjects/Styles.php:933
929▕ */
930▕ private static function trimText(string $text, int $width): string
931▕ {
932▕ preg_match_all(self::STYLING_REGEX, $text, $matches, PREG_OFFSET_CAPTURE);
➜ 933▕ $text = rtrim(mb_strimwidth(preg_replace(self::STYLING_REGEX, '', $text) ?? '', 0, $width, '', 'UTF-8'));
934▕
935▕ foreach ($matches[0] ?? [] as [$part, $index]) {
936▕ $text = substr($text, 0, $index).$part.substr($text, $index, null);
937▕ }
+21 vendor frames
22 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Enviroment: Ubuntu->WSL->Win10
PHP 8.1.2 (cli) (built: Jan 24 2022 10:42:33) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans
composer
"require": {
"php": "^8.0.2",
"laravel/framework": "^9.9.0",
"laravel/sanctum": "^2.11",
"laravel/tinker": "^2.5",
"worksome/envy": "^0.3.1"
},
"require-dev": {
"nunomaduro/collision": "^6.1.0",
See
envy/src/Commands/SyncCommand.php
Line 69 in 6722ca6
Blade::render
method, which was introduced in Laravel v8.80 (See laravel/framework#40425)
Line 20 in 6722ca6
Trying to use the package on Laravel <8.80 will cause error:
Call to undefined method Illuminate\View\Compilers\BladeCompiler::render()
Need to set min. requirement to 8.80 in composer.json
ErrorException
file_get_contents(/Users/ajenbo/monorepo/projects/backoffice/backoffice-website/.env.example): Failed to open stream: No such file or directory
at vendor/thecodingmachine/safe/generated/filesystem.php:319
315▕ $result = \file_get_contents($filename, $use_include_path, $context, $offset);
316▕ } elseif ($context !== null) {
317▕ $result = \file_get_contents($filename, $use_include_path, $context);
318▕ } else {
➜ 319▕ $result = \file_get_contents($filename, $use_include_path);
320▕ }
321▕ if ($result === false) {
322▕ throw FilesystemException::createFromPhpError();
323▕ }
+4 vendor frames
5 [internal]:0
Worksome\Envy\Envy::Worksome\Envy\{closure}("/Users/ajenbo/monorepo/projects/backoffice/backoffice-website/.env.example")
+16 vendor frames
22 artisan:35
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Laravel new project
install package
modify .env - (add api configs, secrets, etc)
php artisan envy:install
php artisan envy:sync
"There are no variables to sync!"
Hey,
I wanted to add a suggestion, and in your git template, the feature suggestion opens a discussion chat, but since this repo doesn't have discussions enabled, it leads to a 404.
Instead of spamming you with another issue, how about I also add the feature request here :)
Would it be possible to include wildcard support for the exclusion list?
The clockwork library has a lot of keys in the env file which are generated, but in production, clockwork is not installed, so having them in the env file is useless.
I could manually add the 46 generated keys by this library in the exclusions
config key, but how about having the option to instead add a 'CLOCKWORK_*'?
Hi guys,
I've just noticed that the SCOUT Env's are skipped, even though they are not in the exclusion list (envy.php).
So I'm believing this is a bug. I'm expecting to get at least SCOUT_QUEUE and SCOUT_DRIVER.
PS: config/scout.php is available. ;-)
Is it a Bug, or do I miss something?
Install Scout.
Remove SCOUT_QUEUE and SCOUT_DRIVER from env.example (if present)
Run php artisan envy:sync
Console-Output: There are no variables to sync!
Laravel Version ................................................................................................ 9.32.0
PHP Version .................................................................................................... 8.1.10
Composer Version ................................................................................................ 2.4.2
Environment ..................................................................................................... local
Debug Mode .................................................................................................... ENABLED
❯ composer show worksome/envy
versions : * v0.5.0
Is it possible to update the requirement of nikic/php-parser
to ^5.0?
With
Then composer update
:
- Root composer.json requires phpunit/phpunit ^11.0.8 -> satisfiable by phpunit/phpunit[11.0.8, 11.0.x-dev, 11.1.x-dev].
- Root composer.json requires worksome/envy ^1.2 -> satisfiable by worksome/envy[v1.2.0].
- phpunit/php-code-coverage[11.0.0, ..., 11.0.x-dev] require sebastian/lines-of-code ^3.0 -> satisfiable by sebastian/lines-of-code[3.0.0, 3.0.x-dev].
- phpunit/phpunit[11.0.8, ..., 11.1.x-dev] require phpunit/php-code-coverage ^11.0 -> satisfiable by phpunit/php-code-coverage[11.0.0, ..., 11.0.x-dev].
- worksome/envy v1.2.0 requires nikic/php-parser ^4.15 -> satisfiable by nikic/php-parser[v4.15.0, ..., 4.x-dev].
- You can only install one version of a package, so only one of these can be installed: nikic/php-parser[v3.1.0, ..., 3.x-dev, v4.3.0, ..., 4.x-dev, v5.0.0alpha1, ..., 5.0.x-dev].
- sebastian/lines-of-code[3.0.0, ..., 3.0.x-dev] require nikic/php-parser ^5.0 -> satisfiable by nikic/php-parser[v5.0.0alpha1, ..., 5.0.x-dev].
- Conclusion: don't install nikic/php-parser v5.0.2 (conflict analysis result)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.