Download the PHP package sqginfo/formcache without Composer

On this page you can find all versions of the php package sqginfo/formcache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package formcache

Form Cache

A simple jQuery form cache plugin.

Getting started

Quick start

Three quick start options are available:

Installation

Include files:

Usage

Initializes with data-toggle="formcache" attribute

Initializes with $.fn.formcache method

Options

key

A special identification for the form cache, must be different to other forms in the same page.

By default, the form's index in the document will be used as the key.

local

Store cache in localStorage.

session

Store cache in sessionStorage.

autoStore

Update and store the cache automatically when a form control changed or before page unload.

maxAge

set the stored time (in seconds) of the caches, just like the max-age for cookie.

By default, the session caches will be cleared when the browser closes, and the local caches will be stored all the time.

Notes:

controls

A jQuery selectors array. Defines the form controls which need to be cached.

Note: All file inputs will be ignored always by default.

Methods

getCache([index])

Params Type Default Description
index Number 0 Cache index

Get the default cache object or a special one.

Examples:

getCaches()

Get all cache objects.

Examples:

setCache([index, ]data)

Params Type Default Description
index Number 0 Cache index
data Object Cache item

Override the default cache object or add a new one.

Examples:

setCaches(data)

Params Type Description
data Array Cache items

Override the old caches with new caches.

Examples:

removeCache([index])

Params Type Default Description
index Number 0 Cache index

Remove the default cache object or a special one.

Examples:

removeCaches()

Remove all cache objects.

Examples:

outputCache([index])

Params Type Default Description
index Number 0 Cache index

Output the default cache object or a special one to the form.

The outputed cache object will be updated automatically when any form control changed.

Examples:

serialize()

Serialize the form and return a cache object.

Examples:

store()

Store all caches to sessionStorage or localStorage.

The plugin will do this automatically when a form control changed, or the window unloaded.

clear()

Clear all caches.

destroy()

Destroy the formcache instance, but keep the caches.

If you want to remove all caches, you can call clear method first and then call this method.

Browser Support

As a jQuery plugin, you can reference to the jQuery Browser Support.

License

Released under the MIT license.


All versions of formcache with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sqginfo/formcache contains the following files

Loading the files please wait ....