GithubHelp home page GithubHelp logo

wfa's Introduction

Workflow Automation

Software License Build Status Coverage Status Quality Score

API for workflow automation. Currently restricted to IIT Guwahati campus, however can be extended to any work-place by hacking into the authentication and formbuilder tools.

Every updated detail is available in the Wiki

Install

To install, download the WFA package from GitLab and run install.sh:

$ . install.sh

Note: if it does not work, try the following and re-run:

$ sudo chmod a+x install.sh

Usage

The directory structure within src folder and the WFA namespace structure is linked.

Using Form Builder

To start building a form:

require 'vendor/autoload.php';
$form = new WFA\FormBuilder\Form();

Currently supported input types include textboxes, radio buttons, password fields and submit buttons. To add new elements to form:

$form->addElement('type of input', 'name of field', 'HTML label for the field');

To add validation rules like email or required to these fields:

$form->addElement('type of input', 'name of field', 'HTML label for the field');
$form->addRule('name of field', 'required');
$form->addRule('name of field', 'email');

After you're done adding form elements, close the form by the following:

$form->buildForm();

Now you may proceed to add a new form, for example:

$form2 = new WFA\FormBuilder\Form();

Generate Documentation (For Developers)

Add phpdoc path to your environment variables:

$ cd vendor/phpdocumentor/phpdocumentor/bin
$ export PATH=$PWD:$PATH

Then go back to the root of the software and execute the following:

$ phpdoc -d src/ -t docs/

Dependencies

All dependencies are listed in the DEPENDENCIES file.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

Testing is done through PHPUnit. All test suites are stored in the 'tests' folder. All tests for a class 'Class' are named as 'ClassTest'. To run tests for a class say 'ExampleClass', use the following:

$ phpunit --bootstrap vendor/autoload.php tests/ExampleClassTest

Contributing

Please see CONTRIBUTING for details.

Issues

All issues are tracked through the GitLab issue tracker.

License

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

wfa's People

Contributors

sagarmanchanda avatar saurabhbatra96 avatar siddharthkhabia avatar jagjot2912 avatar

Watchers

James Cloos 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.