Giter Site home page Giter Site logo

kevinkhill / fontawesomephp Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 14.0 1.61 MB

A PHP wrapper library for the fantastic FontAwesome icon set. Designed for Laravel, but will work with any PHP project.

Home Page: http://kevinkhill.github.io/FontAwesomePHP

License: MIT License

PHP 100.00%
composer fontawesome laravel php

fontawesomephp's People

Contributors

badchoice avatar dafyd avatar danielfewbytes avatar drbyte avatar kevinkhill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fontawesomephp's Issues

spin

I found that calling spin once, makes all icons spin, I can't find why.. or where does it,

For example, if I call

{!! FA::spin('circle-o-notch'); !!}

Then all icons called by

{!! FA::icon('whatever`) !!}

Will spin too...

Add option for aliases?

Would you consider adding the option for aliases, perhaps in a Laravel config file?

For instance you could do icon('blog-post') and alias "blog-post" to "edit".

A simple alias config could be:

return [
    'blog-post' => 'edit',
    'category' => 'tag',
    'approve' => 'check'
];

That way you can use internal terminology and not have to remember which icon you're using for different areas of your site. Or if you want to change the icon for categories to "hashtag" instead of "tag" you can do it easily in one place.

Error installing

When trying to install the package, the following error occurred.
screen shot 2016-04-08 at 2 15 48 am

Class problem when same icon is used multiple times on the same page

Hi,

I think there is a problem when a same icon is used multiple times on the same page.

If I use this code :
{!! FA::icon('times') !!} {!! FA::icon('times') !!} {!! FA::icon('times') !!} {!! FA::icon('times') !!}

The first cross will be correctly displayed, but not the three others :
Cross not correctly displayed

The bug is linked to a problem in the source code : the "fas" class is missing in the three last crosses :
<i class="fas fa-times"></i> <i class=" fa-times"></i> <i class=" fa-times"></i> <i class=" fa-times"></i>

Source code with fas missing

And when is add the "fas" class manually in my Chrome, of course, it works.

Is this problem already known ?
How can we fix this ?

Thanks !

Feature request: get html entity of character

Get html entity string like &#xf00c; or unicode character to use in selects, inputs etc.

<select value="somevalue" style="font-style: Arial,sans-serif,FontAwesome;">
    <option value=""></option>
    <option value="YES"><?= FA::htmlentity('check')?> yes</option>
    <option value="NO"><?= FA::htmlentity('times')?> no</option>
</select>

result like:

<select value="somevalue" style="font-style: Arial,sans-serif,FontAwesome;">
    <option value=""></option>
    <option value="YES">&#xf00c; yes</option>
    <option value="NO">&#xf00d; no</option>
</select>

v2 not appearing in packagist

Trying to install v2

I'm using "khill/fontawesomephp": "2.0.x" in my composer.json

Getting the error:

  Problem 1
    - The requested package khill/fontawesomephp 2.0.x exists as khill/fontawesomephp[1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.x-dev, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.x-dev, dev-gh-pages-1.1, dev-master, v1.0.0] but these are rejected by your constraint.

https://packagist.org/packages/khill/fontawesomephp

Packagist repository out of date

I noticed, that on packagist is still old version 1.1.1 with the missing {. Is there any way you can update it?

Thanks for make this available to us!

Laravel 5 Dev Compatibility

When running the installation of this for the Dev branch (v5) it throws this in Terminal:

- Installation request for khill/fontawesomephp 1.0.* -> satisfiable by khill/fontawesomephp[v1.0.0].
- Conclusion: remove laravel/framework 5.0.x-dev

Any help?

update to 4.4.0

There's a new version, it would be great if we can use the new icons with the default FA::css()

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.