{"id":50734694,"url":"https://github.com/nasirkhan/laravel-sharekit","last_synced_at":"2026-06-10T12:30:48.418Z","repository":{"id":349836644,"uuid":"1204109942","full_name":"nasirkhan/laravel-sharekit","owner":"nasirkhan","description":"Laravel Sharekit provides reusable Blade-powered social sharing buttons for Laravel applications.","archived":false,"fork":false,"pushed_at":"2026-05-30T13:13:02.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T15:07:54.810Z","etag":null,"topics":["blade-components","frontend","laravel","laravel-package","php","reusable-components","share-buttons","social-share","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"Blade","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/nasirkhan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-07T17:44:02.000Z","updated_at":"2026-05-30T13:13:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nasirkhan/laravel-sharekit","commit_stats":null,"previous_names":["nasirkhan/laravel-sharekit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nasirkhan/laravel-sharekit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Flaravel-sharekit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Flaravel-sharekit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Flaravel-sharekit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Flaravel-sharekit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nasirkhan","download_url":"https://codeload.github.com/nasirkhan/laravel-sharekit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Flaravel-sharekit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34153482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["blade-components","frontend","laravel","laravel-package","php","reusable-components","share-buttons","social-share","tailwindcss"],"created_at":"2026-06-10T12:30:47.400Z","updated_at":"2026-06-10T12:30:48.410Z","avatar_url":"https://github.com/nasirkhan.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Sharekit\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://res.cloudinary.com/dslg1fc8y/image/upload/v1775567546/laravel-sharekit-logo_vaqgpc.jpg\" alt=\"Laravel Sharekit - Reusable Blade-powered social sharing buttons for Laravel applications\"\u003e\u003c/p\u003e\n\nLaravel Sharekit provides reusable Blade-powered social sharing buttons for Laravel applications.\n\nIt is designed to work well as a standalone package or alongside packages like `nasirkhan/laravel-cube` when you want social sharing on selected frontend pages without loading sharing assets globally.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/nasirkhan/laravel-sharekit.svg?style=flat-square)](https://packagist.org/packages/nasirkhan/laravel-sharekit)\n[![Total Downloads](https://img.shields.io/packagist/dt/nasirkhan/laravel-sharekit.svg?style=flat-square)](https://packagist.org/packages/nasirkhan/laravel-sharekit)\n[![StyleCI](https://github.styleci.io/repos/1204109942/shield?branch=main)](https://github.styleci.io/repos/1204109942?branch=main)\n\n## Preview\n\n### Light Mode (Screenshot from Tailwind theme)\n\n![Light Mode](https://github.com/user-attachments/assets/eb0079a8-8e2c-4120-bf51-2c265a2dc686)\n\n### Dark Mode (Screenshot from Tailwind theme)\n\n![Dark Mode](https://github.com/user-attachments/assets/f7e4f4da-e447-4dd0-9d0c-6d95f4aa6c9b)\n\n## Features\n\n- Blade component for grouped share buttons\n- Metadata auto-detection from page meta tags and document data\n- Per-instance prop overrides for URL, title, description, image, hashtags, and more\n- Page-scoped CSS and JS loaded only when the component is rendered\n- Native Web Share API support where available\n- Popup-based sharing for common social networks\n- Copy-link action with feedback state\n- Configurable default theme, labels, enabled networks, popup size, and stack names\n- Theme-ready structure with `default` and `tailwind` presets, with room for future themes\n\n## Requirements\n\n- PHP ^8.3\n- Laravel ^11.0 || ^12.0 || ^13.0\n\n## Installation\n\nInstall the package via Composer:\n\n```bash\ncomposer require nasirkhan/laravel-sharekit\n```\n\nThe package uses Laravel package discovery, so no manual provider registration is needed.\n\n## Publish Configuration\n\nIf you want to customize defaults, publish the config file:\n\n```bash\nphp artisan vendor:publish --tag=sharekit-config\n```\n\nIf you want to override the package Blade views:\n\n```bash\nphp artisan vendor:publish --tag=sharekit-views\n```\n\n## Layout Requirements\n\nSharekit pushes page-scoped CSS and JS into Blade stacks.\n\nYour layout should include:\n\n```blade\n@stack('after-styles')\n```\n\ninside the `\u003chead\u003e` section, and:\n\n```blade\n@stack('after-scripts')\n```\n\nbefore the closing `\u003c/body\u003e` tag or in your layout footer.\n\nThese stack names are configurable in `config/sharekit.php`.\n\n## Basic Usage\n\nRender the buttons with page metadata auto-detection:\n\n```blade\n\u003cx-sharekit::buttons /\u003e\n```\n\nThis is useful when your page already includes tags like:\n\n- `og:url`\n- `og:title`\n- `og:description`\n- `og:image`\n- `twitter:title`\n- `twitter:description`\n- `twitter:image`\n- `link[rel=\"canonical\"]`\n\n## Usage With Overrides\n\n```blade\n\u003cx-sharekit::buttons\n    :url=\"route('posts.show', $post)\"\n    :title=\"$post-\u003ename\"\n    :description=\"$post-\u003eintro\"\n    :image=\"$post-\u003efeatured_image_url\"\n    :hashtags=\"['laravel', 'sharing']\"\n    :networks=\"['x', 'facebook', 'linkedin', 'copy', 'native']\"\n/\u003e\n```\n\n## Tailwind Example\n\n```blade\n\u003cx-sharekit::buttons\n    theme=\"tailwind\"\n    :url=\"route('posts.show', $post)\"\n    :title=\"$post-\u003ename\"\n    :description=\"$post-\u003eintro\"\n    :image=\"$post-\u003efeatured_image_url\"\n    :networks=\"['x', 'facebook', 'linkedin', 'copy', 'native']\"\n/\u003e\n```\n\n## Available Props\n\n`\u003cx-sharekit::buttons /\u003e` supports these main props:\n\n- `url`\n- `title`\n- `text`\n- `description`\n- `image`\n- `via`\n- `hashtags`\n- `networks`\n- `theme`\n- `label`\n- `show-labels`\n- `show-heading`\n- `size`\n- `popup`\n- `native`\n\n## Supported Networks\n\nBy default the package supports:\n\n- `x`\n- `facebook`\n- `linkedin`\n- `whatsapp`\n- `telegram`\n- `reddit`\n- `email`\n- `copy`\n- `native`\n\nYou can change the defaults in the config file or pass `:networks=\"[...]\"` directly in the component.\n\n## Metadata Resolution\n\nSharekit resolves metadata in this order:\n\n1. Props passed directly to the component\n2. Page metadata detected in the browser from Open Graph, Twitter, canonical, and standard meta tags\n3. Server-side fallback values such as current URL and app name\n\nThis lets you drop the component into a page with good meta tags and get sensible share output with minimal configuration.\n\n## Themes\n\nThe package currently includes:\n\n- `default`\n- `tailwind`\n\nTheme mappings live in `config/sharekit.php`, so you can adjust classes or add future themes later without changing the package API.\n\n## Configuration\n\nThe config file includes options for:\n\n- default theme\n- Blade stack names\n- popup dimensions\n- whether native sharing is enabled when available\n- default enabled networks\n- label text\n- theme class maps\n\nExample:\n\n```php\n'stack_names' =\u003e [\n    'styles' =\u003e 'after-styles',\n    'scripts' =\u003e 'after-scripts',\n],\n```\n\n## Working With Laravel Cube\n\nLaravel Sharekit works nicely with `nasirkhan/laravel-cube`.\n\nA typical pattern is:\n\n- use Cube for shared UI, layout, forms, navigation, and base frontend components\n- use Sharekit only on content-detail pages such as posts, news items, events, or products\n\nExample:\n\n```blade\n\u003cx-cube::header-block :title=\"$post-\u003ename\" /\u003e\n\n\u003cx-sharekit::buttons\n    theme=\"tailwind\"\n    :url=\"route('posts.show', $post)\"\n    :title=\"$post-\u003ename\"\n    :description=\"$post-\u003eintro\"\n    :image=\"$post-\u003efeatured_image_url\"\n/\u003e\n```\n\n## Testing\n\n```bash\nvendor/bin/phpunit\n```\n\n## Suggested GitHub Topics\n\nYou can use these as GitHub repository topics/tags:\n\n- laravel\n- php\n- blade-components\n- social-share\n- share-buttons\n- sharing\n- laravel-package\n- reusable-components\n- frontend\n- web-share-api\n- tailwindcss\n- bootstrap\n\n## Composer Keywords Suggestion\n\nSuggested package keywords:\n\n- laravel\n- sharing\n- social-share\n- social-sharing\n- blade-components\n- share-buttons\n- share-links\n- sharekit\n- web-share-api\n- frontend\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nContributions, feedback, and suggestions are welcome.\n\n## Security\n\nIf you discover any security related issues, please email `nasir8891@gmail.com` instead of using the issue tracker.\n\n## Credits\n\n- [Nasir Khan](https://github.com/nasirkhan)\n\n## License\n\nThe GNU General Public License v3.0 or later. Please see [LICENSE](LICENSE) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasirkhan%2Flaravel-sharekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasirkhan%2Flaravel-sharekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasirkhan%2Flaravel-sharekit/lists"}