GithubHelp home page GithubHelp logo

laravel-config-writer's Introduction

Hyper Theme

Screenshot

laravel-config-writer's People

Contributors

codelingobot avatar daftspunk avatar geimsdin avatar greatwitenorth avatar hrace009 avatar joshuabehrens avatar martink635 avatar octoberapp avatar rrebilla avatar tekreme73 avatar vahidalvandi avatar xdevor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-config-writer's Issues

Laravel v9 Installation Error

Installation on Laravel 9

ERROR!!!
Could not find a matching version of package daftspunk/laravel-config-writer. Check the package spelling, your version constraint and that the package is availabl e in a stability which matches your minimum-stability (dev).

Undefined method getConfigLoader

Hello,

The method used in the service provider $loader = $app->getConfigLoader(); doesn't exists.

Call to undefined method Illuminate\Foundation\Application::getConfigLoader()

Any idea how to make it work ?

String with backslash fails

I tried to install October CMS which uses laravel-config-writer. The installer asks for the password of the MySQL database and since my passwords are all randomly generated, they contain special characters and sometimes that might be a backslash (). The installer always failed with the error:

Unable to rewrite key "connections.mysql.password" in config, rewrite failed

Now I understand that having one backslash isn't really smart anyways, since it will be stored in a string where the backslash will act as escape character. However even if you use two backslashes to escape the first one, rewrite will just error.

Maybe you don't want to support backslashes, but I thought it's worth reporting regardless. ๐Ÿ˜ƒ

Composer

Hey there.

Can you provide a uploaded package so I can use composer to install this?

license

What is the license for this?

Thanks

Write to array in array

I need to write an array to an array. Is this possible even possible? Like e.g.

rules.php

return [
'rules' => [
       [
            'name' => 'Test rule',
            'value' => 'value1'
        ],
        [
            'name' => 'Test rule 2',
            'value' => 'value 2'
        ]
    ]
]

Laravel 5

Any luck making this work with laravel 5?

Is Laravel 5.8 supported?

I'm running Laravel 5.8.27 and installed illuminate/config, which gave me version 5.8. When I tried installing your config writer, I got this error:

$ composer require "daftspunk/laravel-config-writer"
Using version ^1.0 for daftspunk/laravel-config-writer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- don't install illuminate/config 4.2.x-dev|don't install laravel/framework v5.8.27
- don't install illuminate/config 4.2.x-dev|remove laravel/framework v5.8.27
- don't install illuminate/config 4.2.x-dev|don't install laravel/framework v5.8.27
- daftspunk/laravel-config-writer v1.0 requires illuminate/config 4.2.x -> satisfiable by illuminate/config[4.2.x-dev].
- Installation request for daftspunk/laravel-config-writer ^1.0 -> satisfiable by daftspunk/laravel-config-writer[v1.0].
- Installation request for laravel/framework (locked at v5.8.27, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.27].

Installation failed, reverting ./composer.json to its original content.

Did I do something wrong? Any advice? Thank you!

How to install?

Please provide installation instructions in the readme.

Thanks!

Laravel 5.3 and composer

Hello,
Can I use this package in laravel 5.3?
How can I install this package with composer?
Is it possible to add new config variable?

Recomended Way To Put Code Swap out IoC

Hi,

whats the recomended way to put this code?

App::instance('config', function($app){
    $loader = $app->getConfigLoader();
    $writer = October\Rain\Config\FileWriter($loader, $app['path'].'/config');
    return new October\Rain\Config\Repository($loader, $writer, $app['env']);
})

Maybe in App::filter() ?

Thanks

Usage within OctoberCMS ?

Can someone help me out getting this to work within an octobercms component ?

Use Config;

Config::write('acme.demo::url', 'http://octobercms.com');

Error :

Call to undefined method October\Rain\Config\Repository::write()

Looking at the documentation there's a public method toFile()

use October\Rain\Config\ConfigWriter;
(new ConfigWriter)->toFile('acme.demo::url', 'http://octobercms.com');

Error :

file_get_contents(acme.demo::url): failed to open stream: Invalid argument

Note that my plugin : Acme\Demo has a Config Directory and a config.php file.

Anyone?

Update for Laravel 5.4 and greater and Lumen support

Due to inactivity, I have forked this project to resolve some main issues it has:

  • For #13 & #15: Compatibility with Laravel 5.4 and greater,
  • Add Lumen provider support,
  • Add PHP explicit typings (PHP 7),
  • Fix regex 'non-greedy' search,
  • Update Readme.md for usage.

If you want this update, you can check this repository https://github.com/tekreme73/laravel-config-writer

I have changed the architecture and rename the namespace, that's why I'm not doing a PR, sorry for that.
If you want to, I can make a PR but it will need some commit to remove my 'Tekreme73' namespace...

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.