{"id":22278037,"url":"https://github.com/enflow/laravel-social-share","last_synced_at":"2025-07-28T18:30:35.196Z","repository":{"id":44530646,"uuid":"327586476","full_name":"enflow/laravel-social-share","owner":"enflow","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-22T19:59:18.000Z","size":52,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-02T20:22:14.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"custom":"https://enflow.nl/contact"}},"created_at":"2021-01-07T11:05:35.000Z","updated_at":"2025-02-22T19:58:34.000Z","dependencies_parsed_at":"2024-03-15T14:08:30.092Z","dependency_job_id":null,"html_url":"https://github.com/enflow/laravel-social-share","commit_stats":{"total_commits":12,"total_committers":4,"mean_commits":3.0,"dds":0.25,"last_synced_commit":"4b8bf8bed1e4a1ba04d44d0dfda8cc304332957e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/enflow/laravel-social-share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-social-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-social-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-social-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-social-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enflow","download_url":"https://codeload.github.com/enflow/laravel-social-share/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-social-share/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267563486,"owners_count":24108097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T15:12:39.379Z","updated_at":"2025-07-28T18:30:34.877Z","avatar_url":"https://github.com/enflow.png","language":"PHP","funding_links":["https://enflow.nl/contact"],"categories":[],"sub_categories":[],"readme":"# Easily add social share links\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/enflow/laravel-social-share.svg?style=flat-square)](https://packagist.org/packages/enflow/laravel-social-share)\n![GitHub Workflow Status](https://github.com/enflow/laravel-social-share/workflows/run-tests/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/enflow/laravel-social-share.svg?style=flat-square)](https://packagist.org/packages/enflow/laravel-social-share)\n\nThe `enflow/laravel-social-share` package provides an easy way to add social share links to your templates:\n\n\u003cimg src=\"https://raw.githubusercontent.com/enflow/laravel-social-share/master/docs/example.png\" width=\"275\"\u003e\n\nThe main advantage of implementing it this way instead of using a service like AddThis, is this doesn't use any JavaScript and does not have any privacy concerns.\n\n## Installation\nYou can install the package via composer:\n\n``` bash\ncomposer require enflow/laravel-social-share\n```\n\nThe package will auto-register. You may add the `SocialShareFacade` to your `app.aliases` array:\n\n```php\n'SocialShare' =\u003e \\Enflow\\SocialShare\\SocialShareFacade::class,\n```\n\n### CSS\nThis package includes a CSS file for deafult styling. You can copy this file to your own CSS structure and modify it, or import it in your app.css / app.scss file to use the default variant.\nThe advantage of including it is that it will be automatically updated if changes are made in upcoming versions.\n\n```css\n@import \"../../vendor/enflow/laravel-social-share/dist/css/social-share.css\";\n```\n\n## Usage\nYou can use the Facade in your templates as follows:\n\n```blade\n{{ SocialShare::facebook()-\u003ex()-\u003elinkedin()-\u003ewhatsapp()-\u003erender() }}\n```\n\nYou can chain multiple services next to each other. The following services are currently supported. Pull requests are welcome to expand this.\n\n- Facebook\n- X _(previously Twitter)_\n- LinkedIn\n- WhatsApp\n- Pinterest\n- Reddit\n- Telegram\n- Email\n- Twitter _(deprecated)_ - automatically replaced with `x`\n\nYou can increase the size or set styling options as follows:\n\n```\n{{ SocialShare::facebook()-\u003esquare()-\u003erender() }} // Style: square\n{{ SocialShare::facebook()-\u003erounded()-\u003erender() }} // Style: rounded (default)\n{{ SocialShare::facebook()-\u003ecircle()-\u003erender() }} // Style: circle\n{{ SocialShare::facebook()-\u003enormal()-\u003erender() }} // Normal size (default)\n{{ SocialShare::facebook()-\u003elarge()-\u003erender() }} // Large size\n```\n\nYou may want to pass along text to the different sharing options. This text will be appended to the current URL:\n\n```blade\n{{ SocialShare::facebook()-\u003etext($page-\u003etitle)-\u003erender() }}\n```\n\nYou can combine all options:\n\n```blade\n{{ SocialShare::facebook()-\u003ex()-\u003ereddit()-\u003esquare()-\u003elarge()-\u003etext('Lorem ipsum!')-\u003erender() }}\n```\n\n## Config\n\nYou can publish the config to tweak the services and their colors.\n\nPushing the config file:\n``` bash\nphp artisan vendor:publish --provider=\"Enflow\\SocialShare\\SocialShareServiceProvider\" --tag=\"config\"\n```\n\n## Testing\n``` bash\n$ composer test\n```\n\n## Contributing\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\nIf you discover any security related issues, please email michel@enflow.nl instead of using the issue tracker.\n\n## Credits\n- [Michel Bardelmeijer](https://github.com/mbardelmeijer)\n- [All Contributors](../../contributors)\n\n## About Enflow\nEnflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info [on our website](https://enflow.nl/en).\n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenflow%2Flaravel-social-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenflow%2Flaravel-social-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenflow%2Flaravel-social-share/lists"}