Download the PHP package sawastacks/kropify-laravel without Composer
On this page you can find all versions of the php package sawastacks/kropify-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sawastacks/kropify-laravel
More information about sawastacks/kropify-laravel
Files in sawastacks/kropify-laravel
Package kropify-laravel
Short Description Kropify is a tool that can be integrated into Laravel framework from version 8 and above for the purpose of giving users easy way to crop their profile pictures and cover images.
License MIT
Homepage https://github.com/sawastacks/kropify-laravel
Informations about the package kropify-laravel

 [](https://packagist.org/packages/sawastacks/kropify-laravel) [](LICENSE)
Kropify - Image Cropping Package
- Author: Sawa Stacks - GitHub
- License: MIT License
- Initial version: 10/03/2023
This package (Kropify class) handles the server-side file upload and saving. The Kropify.js script integrates with the frontend to provide cropping, previewing, and uploading of images with your Laravel
backend.
This package is built using vanilla JavaScript, so it doesn't require jQuery as a dependency. It's lightweight, easy to integrate into your project without adding any extra library overhead, and supports multiple instances on a single page.
Requirements
- PHP >= 7.2
- Composer is required
- Laravel 8.x, 9.x , 10.x, 11.x and 12.x
Installation
This package can be installed through composer require
command. Before install this, make sure that your are working with PHP >= 7.2 in your system.
Just run the following command in your cmd or terminal:
-
Install the package via Composer:
The package will automatically register its service provider if your Laravel framework is 8.x or above.
-
Optionally, After you have installed Kropify, open your Laravel config file
config/app.php
and add the following lines.In the
$providers
array, add the service providers for this package. -
After Kropify package installed, you need to publish its css and js minified files in Laravel public folder by running the following command in terminal:
html
html
bash composer update sawastacks/kropify-laravel bash composer remove sawastacks/kropify-laravel && composer require sawastacks/kropify-laravel bash php artisan vendor:publish --tag=kropify-assets --force bash php artisan view:clear bash composer dump-autoload html
Page title @kropifyStyles ...... ... htmlPage title ...... ... html .......... ..... @kropifyScripts html .......... .....