altthree / emoji Goto Github PK
View Code? Open in Web Editor NEWAn emoji parser for Laravel 5.
Home Page: https://alt-three.com/
License: MIT License
An emoji parser for Laravel 5.
Home Page: https://alt-three.com/
License: MIT License
Is there any ETA on this? Want to use this in a new project and support is only until 5.6.
Emojis will render at 100% size and in some cases (like ours) we're unable to style all images to fit. Ideally we need a classname of emoji
on the image tag.
Upon installing this does this mean I can just type :s m i l i e: in my textarea on my app for comments and it will automatically show as ๐ when posted? Im new to laravel so please excuse my noobness.
<!-- Add comment -->
<div class="col-md-12">
{!! Form::open(array('route' => array('comment_torrent', 'slug' => $torrent->slug, 'id' => $torrent->id))) !!}
<div class="form-group">
<label for="content">Your comment:</label>
<textarea name="content" cols="30" rows="5" class="form-control"></textarea>
</div>
<button type="submit" class="btn btn-danger">{!! trans('traduction.save') !!}</button><label class="checkbox-inline"><input type="checkbox" name="confirmation"><strong>Anonymous Comment</strong></label>
{!! Form::close() !!}
</div>
<!-- /Add comment -->
When using EmojiExtension
with @GrahamCampbell's Markdown package, the following occurs:
Unresolvable dependency resolving [Parameter #0 [ array $map ]] in class AltThree\Emoji\EmojiParser
Add a GitHub token as this will reduce the amount of rate limiting.
As soon as I add the EmojiExtension Class to the extensions array from Laravel Markdown I get an Type error.
/*
|--------------------------------------------------------------------------
| CommonMark Extensions
|--------------------------------------------------------------------------
|
| This option specifies what extensions will be automatically enabled.
| Simply provide your extension class names here.
|
| Default: []
|
*/
'extensions' => [
AltThree\Emoji\EmojiExtension::class,
],
Type error: json_decode() expects parameter 1 to be a string, object given
in EmojiServiceProvider.php (line 84)
I am working with Laravel 5.4
try using in laravel 5.6, it complains the version conflict.
found that there was a revertion which dropped the support for 5.6
wonder reason
thanks in advance
correct me if i'm wrong~
when using with laravel-markdown, got the github rate limit exceeded problem, so i add GITHUB_TOKEN in env with the value of my personal access token, after config:cache command, bad luck however.
after digging around, i changed EmojiServiceProvider, line 79:
originally:
$headers['OAUTH-TOKEN'] = $token;
into:
$headers['Authorization'] = 'token '.$token;
according to this url : https://developer.github.com/apps/building-integrations/setting-up-and-registering-oauth-apps/about-authorization-options-for-oauth-apps/#3-use-the-access-token-to-access-the-api
now it works.
can any guys help to confirm this ?
This package is having a lot of version incompatibility for me, but the most important things would be
"graham-campbell/markdown": "~4.0", //while the latest are 5.0
also, i'm wondering if you would make this compatible with laravel 5.0 too. Would love to have this package in my project
Hi ,
First of all let me thank you for this great package. The problem is that there is no document on how to use it. I actually have added this to my project but really don't know where to go with it. I was wondering if you could provide any examples or whatever which will be helpful.
Thanks a lot
James @jbrooksuk ,
Please take a look at cachethq/cachet#837
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.