Download the PHP package getolympus/olympus-dionysos-field-text without Composer

On this page you can find all versions of the php package getolympus/olympus-dionysos-field-text. 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 olympus-dionysos-field-text

Dionysos Text Field

Olympus Component CodeFactor Grade Packagist Version MIT

This component is a part of the Olympus Dionysos fields for WordPress.
It uses the default WordPress text field to display password, range, text, datetime, tel, and more fields.


Table of contents

Contributing


Field initialization

Use the following lines to add a text field in your WordPress admin pages or custom post type meta fields:

Variables definition

Variable Type Default value if not set Accepted values
title String 'Text' empty
default String empty empty
description String empty empty
placeholder String empty empty
type String 'text' see Accepted type
settings Array see Field initialization see Settings definition

Accepted type

Settings definition

The settings variable is an array of options depending on type value.
In all cases, here are the default settings with their explanations:

Variable Type Default value if not set Accepted values
attrs String empty empty
after String empty empty
before String empty empty
class String empty empty
readonly Boolean false true or false

Date type

Full documentation on Mozilla Date page

Variable Type Default value if not set Accepted values
max Date empty latest date to accept in yyyy-MM-dd format
min Date empty earliest date to accept in yyyy-MM-dd format
step Integer empty integer, to read as day

Datetime-local type

Full documentation on Mozilla Datetime-local page

Variable Type Default value if not set Accepted values
max Date empty latest date to accept in yyyy-MM-ddThh:mm format
min Date empty earliest date to accept in yyyy-MM-ddThh:mm format
step Integer empty integer, to read as second

Email type

Full documentation on Mozilla Email page

Variable Type Default value if not set Accepted values
maxlength Integer empty empty
minlength Integer empty empty
multiple Boolean false true or false
pattern String empty javascript regular expression
size Integer empty empty
spellcheck Boolean false true or false

Hidden type

Full documentation on Mozilla Hidden page

Variable Type Default value if not set Accepted values
display Boolean false true or false

This special display variable defines if the hidden field have to show field value or not:

Month type

Full documentation on Mozilla Month page

Variable Type Default value if not set Accepted values
max Date empty latest date to accept in yyyy-MM format
min Date empty earliest date to accept in yyyy-MM format
step Integer empty integer, to read as month

Number type

Full documentation on Mozilla Number page

Variable Type Default value if not set Accepted values
max Float empty empty
min Float empty empty
step Float empty empty

Password type

Full documentation on Mozilla Password page

Variable Type Default value if not set Accepted values
maxlength Integer empty empty
minlength Integer empty empty
pattern String empty javascript regular expression
size Integer empty empty

Range type

Full documentation on Mozilla Range page

Variable Type Default value if not set Accepted values
datalist Array empty list of suggestions users can pick to automatically fill the control's value
max Float empty empty
min Float empty empty
step Float empty empty

This range type will display an input number HTML tag with the field value.

Search type

Full documentation on Mozilla Search page

Variable Type Default value if not set Accepted values
maxlength Integer empty empty
minlength Integer empty empty
pattern String empty javascript regular expression
size Integer empty empty
spellcheck Boolean false true or false

Tel type

Full documentation on Mozilla Tel page

Variable Type Default value if not set Accepted values
maxlength Integer empty empty
minlength Integer empty empty
pattern String empty javascript regular expression
size Integer empty empty

Text type

Full documentation on Mozilla Text page

Variable Type Default value if not set Accepted values
maxlength Integer empty empty
minlength Integer empty empty
pattern String empty javascript regular expression
size Integer empty empty
spellcheck Boolean false true or false

Time type

Full documentation on Mozilla Time page

Variable Type Default value if not set Accepted values
max Date empty latest time to accept in hh:mm or hh:mm:ss format
min Date empty earliest time to accept in hh:mm or hh:mm:ss format
step Integer empty integer, to read as second

When the step variable is provided, browser will add the seconds input area adjacent to the minutes section.
The max and min variables format will automatically be forced to hh:mm:ss.

URL type

Full documentation on Mozilla URL page

Variable Type Default value if not set Accepted values
datalist Array empty list of suggestions users can pick to automatically fill the control's value
maxlength Integer empty empty
minlength Integer empty empty
pattern String empty javascript regular expression
size Integer empty empty
spellcheck Boolean false true or false

Week type

Full documentation on Mozilla Week page

Variable Type Default value if not set Accepted values
max Date empty latest time to accept in yyyy-Www format
min Date empty earliest time to accept in yyyy-Www format
step Integer empty integer, to read as 1week

Retrive data

Retrieve your value from Database with a simple get_option('my_text_field_id', '') (see WordPress reference):

Release History

Version Note
0.0.23 Fix jQuery integration on domReady
0.0.22 Change main DIV id to avoid HTML conflicts for labels
0.0.21 Enable datalist suggestions for range type

Contributing

  1. Fork it (https://github.com/GetOlympus/olympus-dionysos-field-text/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Built with ♥ by Achraf Chouk ~ (c) since a long time.


All versions of olympus-dionysos-field-text 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 getolympus/olympus-dionysos-field-text contains the following files

Loading the files please wait ....