edalzell/forma

Give control panel access to your addon's config

Installs: 178

Dependents: 2

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 2

Type:statamic-addon

v0.7.2 2020-11-22 06:38 UTC

This package is auto-updated.

Last update: 2020-11-22 06:49:04 UTC


README

Latest Version

This package provides an easy way to let users configure your addon.

Requirements

  • PHP 7.4+
  • Statamic v3

Installation

You can install this package via composer using:

composer require edalzell/forma

The package will automatically register itself.

Usage

First, create a config.yaml file in resources\config that contains the blueprint for your configuration. As an example, see Mailchimp's, here.

Then, in the boot method of your addon's Service Provider add:

\Edalzell\Forma\Forma::add('package/name');

Once you do that, you get a menu item in the cp that your users can access and use. All data is saved into your addon_handle.php in the config folder.

menu item

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email addon-security@silentz.co instead of using the issue tracker.

License

MIT License