GithubHelp home page GithubHelp logo

roelofjan-elsinga / flat-file-cms-forms Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 30 KB

A module for Flat File CMS to generate forms from simple JSON configurations

License: MIT License

PHP 100.00%

flat-file-cms-forms's Introduction

Flat File CMS Forms module

This is a module for Flat File CMS (running Laravel) to generate forms from simple JSON configurations.

Installation

You can include this package by requiring it through Composer.

composer require roelofjan-elsinga/flat-file-cms-forms

Requirements

  • php >= 7.2
  • Laravel
  • roelofjan-elsinga/flat-file-cms

Configuration

By default, the configurations for forms are placed at resources/content/forms. You can customize this by publishing the config file by running:

php artisan vendor:publish --provider="FlatFileCms\\Forms\\ServiceProvider"

This will place flatfilecms-forms.php in your config folder.

Usage

You can include forms in Blade files by calling FlatForm::get('form-name') in your templates:

{!! FlatForm::get('form-name') !!}

If you want to include a form in a page that's managed through Flat File CMS then you can call {{form:form-name}} in your HTML or Markdown files.

Testing

You can run tests by running ./vendor/bin/phpunit.

flat-file-cms-forms's People

Contributors

roelofjan-elsinga avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.