pingpong-labs / shortcode Goto Github PK
View Code? Open in Web Editor NEWLaravel 5 Shortcode
Home Page: https://pingpong-labs.github.io/docs/shortcode.html
License: BSD 3-Clause "New" or "Revised" License
Laravel 5 Shortcode
Home Page: https://pingpong-labs.github.io/docs/shortcode.html
License: BSD 3-Clause "New" or "Revised" License
Laravel 5.2 Support is missing.
@gravitano Can u implement this ?
Hello,
Could you please provide us with some more documentation... for example how to execute the ShortcodeTest . (what values do we need to send to the function testParse...)
and could you give some more explanation in the documentation. where goes the class? where goes the Shortcode::register and where goes the function...
Hi,
Just want to know if it's possible to get more basic shortcake though this package, per exemple I want to make a mention of another user could I use this package to do :
@Username #MessageID
In a simple way, is this possible to freely adapt the parser for any specific use.
If not, could you redirect me to another package that could make this.
Sincerly,
is there any way i can use short code in view file like
https://github.com/gornymedia/laravel-shortcodes
they rendering short code in views
Hey there, awesome package! I've already gotten a ton of use for this.
This isn't really an issue, I was just wondering how you would go about adding default attributes for each shortcode. Currently I am creating a new file for each shortcode class, and registering them when the application loads the content. Each shortcode has its own default attributes set as protected variables. If the array_get turns up null, then we grab the default attribute.
Cheers!
I used this package before with Laravel 4 and it worked like a charm. Now I was using the version 2.2 with a Laravel 5.1 app and it seems like the different ways of registering shortcodes don't really work with this version of the library.
I was looking at the code and noticed it now uses a package named thunderer/shortcode
which validates that the function that will parse the shortcode is a callable, which will throw an error when trying to use for example the syntax 'ClassPath@method' or just 'ClassPath' (assuming the class has a register method defined). So the current version only supports a closure or anything that can be called as a function. I can confirm this because I updated my composer.json
file to use the version 2.1 instead and now it works.
Are you planning on upgrading to Laravel 5 or is it already supported?
Trying to use the shortcode package in an app I am working on but I am getting this error:
ErrorException in AliasLoader.php line 63:
Class 'Pingpong\Shortcode\Facades\Shortcode' not found
I do have the required provider and facade lines in the app.php file, so could it be that Shortcode is not ready for laravel 5?
thanks
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.