PHPackages                             flixtechs-labs/laravel-bytepoint - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. flixtechs-labs/laravel-bytepoint

ActiveLibrary[Image &amp; Media](/categories/media)

flixtechs-labs/laravel-bytepoint
================================

Bytepoint image optimization API client SDK for laravel

0.0.3(2y ago)1272[2 PRs](https://github.com/flixtechs-labs/laravel-bytepoint/pulls)MITPHPPHP ^8.1

Since May 30Pushed 2y agoCompare

[ Source](https://github.com/flixtechs-labs/laravel-bytepoint)[ Packagist](https://packagist.org/packages/flixtechs-labs/laravel-bytepoint)[ Docs](https://github.com/flixtechs-labs/laravel-bytepoint)[ RSS](/packages/flixtechs-labs-laravel-bytepoint/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (13)Versions (6)Used By (0)

Bytepoint image optimization API client SDK for laravel
=======================================================

[](#bytepoint-image-optimization-api-client-sdk-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5d03a705e675b1347472cc0c8ca99e0b201b37143d71880a7a9ea52d141ba3e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c697874656368732d6c6162732f6c61726176656c2d62797465706f696e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flixtechs-labs/laravel-bytepoint)[![GitHub Tests Action Status](https://camo.githubusercontent.com/69c0e6226c71064aa48c96d54b3768d9336181845fb74b5c3838150a2e134255/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666c697874656368732d6c6162732f6c61726176656c2d62797465706f696e742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/flixtechs-labs/laravel-bytepoint/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/46a46a61fabc76103cd6980184621ea6220c5b12889f23a98b5ff83e10cf5b79/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666c697874656368732d6c6162732f6c61726176656c2d62797465706f696e742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/flixtechs-labs/laravel-bytepoint/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/34f77e1d30beaae5552a98320a279f2ce3f9264eba4bfd7ccaa1300b1df93eb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c697874656368732d6c6162732f6c61726176656c2d62797465706f696e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flixtechs-labs/laravel-bytepoint)

Optimize uploaded images on the fly with Bytepoint in Laravel. Fits nicely into your existing workflow

```
$file = $request->file('image');

$file->bytepoint([
	'type' => 'jpeg'
])
 ->store('avatars');
```

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require flixtechs-labs/laravel-bytepoint
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-bytepoint-config"
```

This is the contents of the published config file:

```
return [
    'token' => env('BYTEPOINT_TOKEN', ''),
    'url' => env('BYTEPOINT_URL', ''),
];
```

Usage
-----

[](#usage)

To use this package you to first to obtain an API token from Bytepont

Visit  and create an account

On the profile page at the bottom click on "generate token" and copy the token to your .env file as follows

```
BYTEPOINT_TOKEN=XXXXXX
```

Add another optional enviroment variable

```
BYTEPOINT_URL=https://bytepoint.flixtechs.co.zw/api/v1/images
```

After this, all you need to do is hook bytepoint into your existing workflow.

This package adds a fluent `bytepoint()` helper to the `UploadedFile` object which accepts an array options as arguments.

Currently you can only specifiy the resulting file type, more options coming soon!

```
$request->file('image')->bytepoint(['type' => 'resulting type'])->store('avatars');
```

list of accepted file types

- webp
- png
- jpeg

Just call bytepoint before you save the file storage or any other media library that you are using

Optimizing existing images
--------------------------

[](#optimizing-existing-images)

You can also optimize existing images using the Bytepoint facade

```
use  FlixtechsLabs\Bytepoint\Facades\Bytepoint;

Bytepoint::optimize($filePath, $destinationPath, $fileName = '', $options = []);
```

The parameters are as follows

- the file `$filePath` is the path to file you want to optimize
- `$destinationPath` is the path to save the optimized file
- `$fileName` is the name of the file, this is optional though
- `$options` an array of options to tell bytepoint how to optimize the image, currently you can only set the resulting file to either `webp,jpeg,png`

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Given Ncube](https://github.com/slimgee)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

3

Last Release

1062d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/858adba2e9ad707913de77ce85bec37ee60a1acbf0a2877ad8ff1c486f5c8335?d=identicon)[flixtechs-labs](/maintainers/flixtechs-labs)

---

Top Contributors

[![SlimGee](https://avatars.githubusercontent.com/u/42301835?v=4)](https://github.com/SlimGee "SlimGee (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravel-image-optimizelaravel-image-uploadlaravelFlixtechs Labslaravel-bytepoint

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/flixtechs-labs-laravel-bytepoint/health.svg)

```
[![Health](https://phpackages.com/badges/flixtechs-labs-laravel-bytepoint/health.svg)](https://phpackages.com/packages/flixtechs-labs-laravel-bytepoint)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[saasykit/laravel-open-graphy

An awesome open graph image (social cards) generator package for Laravel.

13057.0k](/packages/saasykit-laravel-open-graphy)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[ace-of-aces/laravel-image-transform-url

Easy, URL-based image transformations inspired by Cloudflare Images.

1756.4k](/packages/ace-of-aces-laravel-image-transform-url)[spatie/laravel-mailcoach-sdk

An SDK to easily work with the Mailcoach API in Laravel apps

41290.2k1](/packages/spatie-laravel-mailcoach-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
