Download the PHP package nasirkhan/laravel-sharekit without Composer

On this page you can find all versions of the php package nasirkhan/laravel-sharekit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-sharekit

Laravel Sharekit

Laravel Sharekit - Reusable Blade-powered social sharing buttons for Laravel applications

Laravel Sharekit provides reusable Blade-powered social sharing buttons for Laravel applications.

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

Latest Version on Packagist Total Downloads StyleCI

Features

Requirements

Installation

Install the package via Composer:

The package uses Laravel package discovery, so no manual provider registration is needed.

Publish Configuration

If you want to customize defaults, publish the config file:

If you want to override the package Blade views:

Layout Requirements

Sharekit pushes page-scoped CSS and JS into Blade stacks.

Your layout should include:

inside the <head> section, and:

before the closing </body> tag or in your layout footer.

These stack names are configurable in config/sharekit.php.

Basic Usage

Render the buttons with page metadata auto-detection:

This is useful when your page already includes tags like:

Usage With Overrides

Tailwind Example

Available Props

<x-sharekit::buttons /> supports these main props:

Supported Networks

By default the package supports:

You can change the defaults in the config file or pass :networks="[...]" directly in the component.

Metadata Resolution

Sharekit resolves metadata in this order:

  1. Props passed directly to the component
  2. Page metadata detected in the browser from Open Graph, Twitter, canonical, and standard meta tags
  3. Server-side fallback values such as current URL and app name

This lets you drop the component into a page with good meta tags and get sensible share output with minimal configuration.

Themes

The package currently includes:

Theme mappings live in config/sharekit.php, so you can adjust classes or add future themes later without changing the package API.

Configuration

The config file includes options for:

Example:

Working With Laravel Cube

Laravel Sharekit works nicely with nasirkhan/laravel-cube.

A typical pattern is:

Example:

Testing

Suggested GitHub Topics

You can use these as GitHub repository topics/tags:

Composer Keywords Suggestion

Suggested package keywords:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Contributions, feedback, and suggestions are welcome.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The GNU General Public License v3.0 or later. Please see LICENSE for more information.


All versions of laravel-sharekit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3 || ^8.4
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nasirkhan/laravel-sharekit contains the following files

Loading the files please wait ...