GithubHelp home page GithubHelp logo

pingpong-labs / shortcode Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 21.0 34 KB

Laravel 5 Shortcode

Home Page: https://pingpong-labs.github.io/docs/shortcode.html

License: BSD 3-Clause "New" or "Revised" License

PHP 100.00%

shortcode's People

Contributors

alexcrawford avatar bitdeli-chef avatar boris-glumpler avatar gravitano avatar thunderer 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

Watchers

 avatar  avatar  avatar  avatar  avatar

shortcode's Issues

Lack of documentation

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...

Customize shortcodes to more generic codes

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,

Default attributes

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!

Version 2.2 compatibility

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.

Laravel 5?

Are you planning on upgrading to Laravel 5 or is it already supported?

Problem trying to use Shortcode in Laravel 5

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

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.