Coder Social home page Coder Social logo

share-l4's People

Contributors

elvendor avatar gamergemparq avatar thujohn 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

share-l4's Issues

Dependency on lluminate/support: >=4.0.0

Can you use a wild card like lluminate/support: >=4.0.*
I can't add it to my laravel app because I'm on 4.0.*dev.

Thanks

Wonderful job by the way.

I think some of your other packages have this limitations as well.

Support for share by email

Hi,

I took the liberty and add the function to share by email.

public function email(){
        return 'mailto:?subject=Site: ' . $this->text . '&body=Check out this site ' . $this->link;
}

Easy line but with this it looks cleaner on the view.

Return object instead of array?

Not really an issue, but i personally think its cleaner to return objects in my views rather than arrays.

Add (object) to Share.php, Line 29:

return (object)$return;

Now i can use

$sharelink = Share::load(URL::to('someurlhere'), $something->title)->services('facebook', 'twitter');
$sharelink->facebook;
$sharelink->twitter;
...

Personal preference but imo looks cleaner in your view!

Pinterest Media

In order to get pinterest to actually show an image, I had to add media= to the share url. Not really an issue, but you might want to include it in the next update.

I have og:image set also, which facebook and reddit seem to support.

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.