Git Product home page Git Product logo

yii2-helpers's Introduction

yii2-helpers

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

This extension is a collection of useful helper functions for Yii Framework 2.0.

Html Class

VIEW DEMO

This class extends the Yii Html Helper to incorporate additional HTML markup functionality and features available in Bootstrap 3.0. The helper functions available in this class are:

  • Icon
  • Label
  • Badge
  • Page Header
  • Well
  • Close Button
  • Caret
  • Jumbotron
  • Abbreviation
  • Blockquote
  • Address
  • List Group
  • Panel
  • Media
  • Media List
  • Checkbox Button Group
  • Radio Button Group

Enum Class

VIEW DEMO

This class extends the Yii Inflector Helper with more utility functions for Yii developers. The helper functions available in this class are:

  • Is Empty
  • In Array
  • Properize
  • Time Elapsed
  • Time To String
  • Time Remaining
  • Format Bytes
  • Number to Words
  • Year List
  • Month List
  • Day List
  • Date List
  • Time List
  • Boolean List
  • Get PHP Data Type
  • Array to HTML Table
  • IP Address

Demo

You can see a demonstration here on usage of these functions with documentation and examples.

Installation

The preferred way to install this extension is through composer.

Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.

Either run

$ php composer.phar require kartik-v/yii2-helpers "dev-master"

or add

"kartik-v/yii2-helpers": "dev-master"

to the require section of your composer.json file.

Usage

// add this to your code to use these classes
use kartik\helpers\Html;
use kartik\helpers\Enum;

// examples of usage
echo Html::icon('cloud');
echo Enum::properize('Chris');

License

yii2-helpers is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

yii2-helpers's People

Contributors

dkushnikov avatar fingal56 avatar gvasilopulos avatar henkkao avatar kartik-v avatar lherry avatar maxlord avatar mbenedek avatar monghuz avatar nepster-web avatar richweber avatar toriphes avatar tuyakhov avatar viqtor avatar wbraganca avatar xzaero avatar

Watchers

 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.