Giter Club home page Giter Club logo

flex-code-html's Introduction

flex-code-html

abandoned

Description

The Goal of this Package is to create a simple and MVC independent HTML Code Renderer.

Requirements

The following versions of PHP are supported by this version.

  • PHP 5.4
  • PHP 5.5
  • PHP 5.6
  • PHP 7.0
  • HHVM

Coding Standards

Flex follows the standards defined in the PSR-0, PSR-1, PSR-2 and PSR-4 documents.

Installation / Usage

Via Composer

{
    "require": {
        "elnebuloso/flex-code-html": "~1.0"
    }
}

Examples

  • each tag has a render method which returns the html code
  • each tag has the magic "__toString" method which renders the html code over the render method
  • the setter methods on the tag object are chainable
  • you can define the doctype in which the tag should render
  • the doctype e.g. decides how to close the tag (self-closing tag, void / non-void tags)
  • each tag can have children of TagInterface or String which will be rendered as the tag body (only if tag is not marked as non-void tag)

see public/examples.php for more examples

flex-code-html's People

Contributors

elnebuloso avatar

Watchers

 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.