Code Monkey home page Code Monkey logo

sv-settings's Introduction

svycka/sv-settings

Build Status Coverage Status Quality Score Latest Version on Packagist Software License Total Downloads

This module simplifies settings storage. For example this can be used with ZfcUser or store your application global settings. This module also could be used with CMS to store page settings like title, description, SEO, published time or whatever you want. This module also provides optional simple REST API to change your settings.

Install

Via Composer

$ composer require svycka/sv-settings

Basic Usage

  • Register Svycka/Settings as module in config/application.config.php
  • Copy the file located in vendor/svycka/sv-settings/config/settings.global.php.dist to config/autoload/settings.global.php and change the values as you wish

Change log

Please see CHANGELOG for more information what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

sv-settings's People

Contributors

svycka avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

sv-settings's Issues

Add config options for storage

For doctrine it would mean that factory would not force orm_default, but this could be configurable. And maybe other storage's could use some options if any.

Create documentation

would be nice at least with this:

  • How to create collections
  • How to add settings and what options available
  • How to create custom providers
  • How to create custom types

Add basic types

needs basic setting types:

  • string
  • integer
  • boolean (Has to many possible implementations. So it can be added as custom type.)
  • float
  • in_array
  • regex

[Insight] Missing use statement should be avoided - in src/Entity/Setting.php, line 12

in src/Entity/Setting.php, line 12

The @Doctrine\ORM\Mapping\Entity annotation looks like a class annotation which resolves to the Svycka\Settings\Entity\Doctrine\ORM\Mapping\Entity class which PHP does not seem to be able to autoload.

 * @Doctrine\ORM\Mapping\Table(name="svycka_settings", options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"})
 *
 * @author Vytautas Stankus <[email protected]>
 * @license MIT
 */
class Setting implements SettingInterface
{
    /**
     * @var int
     * @Doctrine\ORM\Mapping\Id
     * @Doctrine\ORM\Mapping\Column(type="integer", name="id")

Posted from SensioLabsInsight

Add tests

no stable release until at least 70% coverage

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.