2017 © Pedro Peláez
 

library camon

A PHP package mainly developed for Laravel to generate icon fonts like Font-Awesome, Glyphicons, Ionicons, Octicions, Foundation and Material-Icons.

image

sukohi/camon

A PHP package mainly developed for Laravel to generate icon fonts like Font-Awesome, Glyphicons, Ionicons, Octicions, Foundation and Material-Icons.

  • Wednesday, February 10, 2016
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Camon

A PHP package mainly developed for Laravel to generate icon fonts like the below.
(This is for Laravel 5+. For Laravel 4.2), (*1)

Imgur, (*2)

Installation

Add this package name in composer.json, (*3)

"require": {
  "sukohi/camon": "2.*"
}

Execute composer command., (*4)

composer update

Register the service provider in app.php, (*5)

'providers' => [
    ...Others...,  
    Sukohi\Camon\CamonServiceProvider::class,
]

Also alias, (*6)

'aliases' => [
    ...Others...,  
    'Camon'   => Sukohi\Camon\Facades\Camon::class
]

Usage

// Font-Awesome
echo \Camon::FA('home');

// Glyphicons
echo \Camon::GL('home');

// Ionicons
echo \Camon::ION('home');

// Octicons
echo \Camon::OCT('home');

// Foundation Icon Fonts
echo \Camon::FI('home');

// Material Icons
echo \Camon::MI('face');

Options, (*7)

// Specific tag
echo \Camon::FA('home')->tag('span');

// Additional Class
echo \Camon::FA('home', ['class' => 'text-success']);

// Specific Property
echo \Camon::FA('home', ['id' => 'id']);

// Without After-Spacing

echo \Camon::FA('home', [], false);

// Multiply
echo \Camon::FA('home', [
    'id' => 'your-id-name', 
    'class' => 'your-class-name'
], false);

After-Spacing, (*8)

echo \Camon::FA('home')->space();   // without space
echo \Camon::FA('home')->space('left');
echo \Camon::FA('home')->space('right');
echo \Camon::FA('home')->space('both');

CDN, (*9)

echo \Camon::cdn('fontawesome');
echo \Camon::cdn('fontawesome', $version = '4.4.0');
echo \Camon::cdn('fontawesome', $version = '4.4.0', $tag = true);
echo \Camon::cdn('fontawesome', $version = '4.4.0', $tag = false);  // Only URL
  • Parameter for cdn can be fontawesome, glyphicons, ionicons, octicons, foundation and material-icons.

Note: material-icons doesn't have version as of 10 Aug, 2015., (*10)

How to search icons

Try the below. Really useful!, (*11)

License

This package is licensed under the MIT License., (*12)

Copyright 2014 Sukohi Kuhoh, (*13)

The Versions

10/02 2016

dev-master

9999999-dev

A PHP package mainly developed for Laravel to generate icon fonts like Font-Awesome, Glyphicons, Ionicons, Octicions, Foundation and Material-Icons.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

10/02 2016

2.0.x-dev

2.0.9999999.9999999-dev

A PHP package mainly developed for Laravel to generate icon fonts like Font-Awesome, Glyphicons, Ionicons, Octicions, Foundation and Material-Icons.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

10/02 2016

2.0.1

2.0.1.0

A PHP package mainly developed for Laravel to generate icon fonts like Font-Awesome, Glyphicons, Ionicons, Octicions, Foundation and Material-Icons.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

10/02 2016

1.0.x-dev

1.0.9999999.9999999-dev

A PHP package mainly developed for Laravel to generate icon fonts like font-awesome, glyphicons, ionicons and octicions.

  Sources   Download

The Requires

 

by Avatar Sukohi

10/02 2016

1.0.3

1.0.3.0

A PHP package mainly developed for Laravel to generate icon fonts like font-awesome, glyphicons, ionicons and octicions.

  Sources   Download

The Requires

 

by Avatar Sukohi

10/02 2016

1.0.2

1.0.2.0

A PHP package mainly developed for Laravel to generate icon fonts like font-awesome, glyphicons, ionicons and octicions.

  Sources   Download

The Requires

 

by Avatar Sukohi

19/08 2015

1.0.1

1.0.1.0

A PHP package mainly developed for Laravel to generate icon fonts like font-awesome, glyphicons, ionicons and octicions.

  Sources   Download

The Requires

 

by Avatar Sukohi

10/08 2015

2.0.0

2.0.0.0

A PHP package mainly developed for Laravel to generate icon fonts like Font-Awesome, Glyphicons, Ionicons, Octicions, Foundation and Material-Icons.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

10/08 2015

1.0.0

1.0.0.0

A PHP package mainly developed for Laravel to generate icon fonts like font-awesome, glyphicons, ionicons and octicions.

  Sources   Download

The Requires

 

by Avatar Sukohi