Download the PHP package oui/oui_flat without Composer

On this page you can find all versions of the php package oui/oui_flat. 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 oui_flat

h1. oui_flat

"Download":https://github.com/nicolasgraph/oui_flat/releases | "Packagist":https://packagist.org/packages/oui/oui_flat | "Donate to the original author":http://rahforum.biz/donate/oui_flat

This plugin makes your "Textpattern CMS":http://www.textpattern.com database more flat, manageable and editable. Edit templates, forms, pages, preferences and sections as flat files. Use any editor, work in teams and store your website's source under your favorite "version control system":http://en.wikipedia.org/wiki/Revision_control.

Warning: this plugin will permanently remove some of your current templates when activated.

h2. Installing

Using "Composer":https://getcomposer.org:

bc. $ composer require oui/oui_flat:*

Or "download":https://github.com/nicolasgraph/oui_flat/releases a plugin package.

h2. Requirements

h2. Basics

oui_flat imports normal, flat files from a specified directory to your Textpattern database. This, in essence, lets you to edit your database contents from any regular editor and store the source as flat files.

oui_flat comes with built-in support for a few essential content types: styles, forms, pages, preferences, sections and textpacks. It is also able to manage variables via plugin prefs. See the "templates":https://github.com/nicolasgraph/oui_flat/tree/master/templates directory on GitHub for an example how this all works.

Your flat files are imported to the database:

If you want to exclude a certain content type from importing, just don't create a directory for it. No directory, and oui_flat will leave the database alone when it comes to that content type.

h2. Preferences

The plugin has set of preferences you can find on Textpattern's normal preferences panel.

h3. Path to the templates directory

Specifies path to the root templates directory containing all the content-type specific directories. This path is relative to your 'textpattern' installation directory. For example, a path @../templates@ would point to a directory located in the same directory as your textpattern directory and the main index.php file.

h3. Security key for the public callback

Security key for the public callback hook URL. Importing is done when the URL is accessed. The URL follows the format of:

bc. http://example.com/?oui_flat_key={yourKey}

Where @http://example.com/@ is your site's URL, and @{yourKey}@ is the security key you specified.

h2. Templates folder example

bc.. ┌ templates ├── forms ├── pages ├── prefs ├── sections ├── styles ├── textpacks └── variables

p. For most existing template subfolders, the related admin tab will be disable. The Admin > Preferences tab will still be accessible, however saved preferences will be overriden by existing flat files while the @/prefs@ folder exists The admin Admin > languages tab will still be accessible and usable while the @/pages@ folder exists.

Contained files can use whatever extension.

h3. Forms

Form types can be defined by filename prefixes or @/forms@ subfolder names. @misc@ type is used by default when no prefix is found in files stored directly in the @/form@ folder.

bc.. ┌ templates ├── forms ├──── article.example_1.txp ├──── example_2.txp ├──── … ├── …

p. or

bc.. ┌ templates ├── forms ├──── article ├────── example_1.txp ├────── … ├──── misc ├────── example_2.txp ├────── … ├──── … ├── …

h3. Pages

bc.. ├── … ├── pages ├──── example.txp ├──── … ├── …

h3. Prefs

Prefs files can contain a JSON tree or just the preference value as text.

bc.. ├── … ├── prefs ├──── sitename.json ├──── site_slogan.txt ├──── … ├── …

p. Available JSON field is:

@sitename.txt@ would just contain the preference related value.

h3. Sections

Sections files are managed via JSON files.

bc.. ├── … ├── sections ├──── example.json ├──── … ├── …

p. Available JSON fields are:

h3. Styles

bc.. ├── … ├── styles ├──── default.css ├──── … ├── …

h3. textpacks

bc.. ├── … ├── textpacks ├──── example.textpack ├──── … ├── …

h3. Variables

Variables can be defined via JSON files as plugin prefs and used through the @@ tag.

bc.. ├── … ├── variables ├──── example.json ├──── …

p. Available JSON fields are:

h2. Toolshed notice

This is a toolshed project. Experimental fork from "rah_flat":https://github.com/gocom/rah_flat which is not part of the main supported product line of "Rah":https://github.com/gocom. Not yet at least. Please use at your own risk.

h2. Changelog

h3. Version 0.7.0-beta (oui_flat from upcoming rah_flat-v0.4) - 2017/06/25

h3. Version 0.6.0 (oui_flat) - 2017/03/14

h3. Version 0.5.0 (oui_flat) - 2016/08/26

h3. Version 0.4.0 (oui_flat) - 2015/11/29

h3. Version 0.3.0 (rah_flat) - 2014/03/28

h3. Version 0.2.0 (rah_flat) - 2014/03/19

h3. Version 0.1.0 (rah_flat) - 2013/05/07


All versions of oui_flat with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.6
textpattern/lock Version >=4.6.0
textpattern/installer Version *
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 oui/oui_flat contains the following files

Loading the files please wait ....