PHPackages                             g4t/webshot - 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. g4t/webshot

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

g4t/webshot
===========

Package to take screenshoot for web page as image or pdf.

0.1.1(1y ago)835MITPHP

Since Jun 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hussein4alaa/laravel-g4t-webshot)[ Packagist](https://packagist.org/packages/g4t/webshot)[ RSS](/packages/g4t-webshot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Laravel G4T WebShot
===================

[](#laravel-g4t-webshot)

[![Laravel G4T WebShot](https://github.com/hussein4alaa/laravel-g4t-webshot/raw/main/banner.png?raw=true)](https://github.com/hussein4alaa/laravel-g4t-webshot/blob/main/banner.png?raw=true)

Introduction
------------

[](#introduction)

Laravel G4T WebShot is a powerful PHP package designed to capture screenshots or generate PDFs from any web page. It provides robust functionality for managing and retrieving screen dimensions based on predefined identifiers.

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

[](#installation)

To install the Laravel G4T WebShot, follow these steps:

1. Install via Composer:

    ```
    composer require g4t/webshot
    ```

Usage
-----

[](#usage)

### Getting Started

[](#getting-started)

1. Capture and Return Full Path:

To capture a screenshot of a web page and return its URL:

```
use g4t\WebShot\Screenshot;

$save_path = public_path('files/save.png');
return Screenshot::take('https://google.com')
                  ->size('14-inc')
                  ->saveAs($save_path)
                  ->url();
```

2. Capture and Download:

To capture a screenshot of a web page and download it directlyURL:

```
use g4t\WebShot\Screenshot;

$save_path = public_path('files/save.png');
return Screenshot::take('https://google.com')
                  ->size('14-inc')
                  ->saveAs($save_path)
                  ->path();
```

3. Capture and Download:

To capture a screenshot of a web page and download it directly:

```
use g4t\WebShot\Screenshot;

$save_path = public_path('files/save.png');
return Screenshot::take('https://google.com')
          ->size('14-inc')
          ->saveAs($save_path)
          ->download();
```

4. Custom Size:

To specify custom dimensions for the screenshot:

```
use g4t\WebShot\Screenshot;

$save_path = public_path('files/save.png');
return Screenshot::take('https://google.com')
          ->customSize(width: 1000, height: 1000)
          ->saveAs($save_path)
          ->download();
```

5. The following screen sizes are available:

```
'13-inc',
'14-inc',
'15-inc',
'16-inc',
'iphone-SE1st',
'iphone-SE-2nd',
'iphone-6',
'iphone-6s',
'iphone-7',
'iphone-8',
'iphone-8-plus',
'iphone-11-pro-max',
'ipad-landscape',
'ipad-pro-10.5-landscape',
'ipad-pro-11-inch-landscape',
'ipad-pro-12.9-inch-landscape',
'full-hd',
'2k',
'4k'
```

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

[](#contributing)

Contributions to the Laravel G4T WebShot Package are always welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License
-------

[](#license)

The Laravel G4T WebShot is open-source software licensed under the [MIT license](LICENSE.md).

Credits
-------

[](#credits)

The Laravel G4T WebShot Package is developed and maintained by [HusseinAlaa](https://www.linkedin.com/in/hussein4alaa/).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

680d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7b7c2556272b7d41b2b756e7791f812c3a22b8ab34fa69d47ae1d8806b67cb6?d=identicon)[hussein4alaa](/maintainers/hussein4alaa)

---

Top Contributors

[![hussein4alaa](https://avatars.githubusercontent.com/u/13614747?v=4)](https://github.com/hussein4alaa "hussein4alaa (7 commits)")

---

Tags

phpweblaravelscreenshot

### Embed Badge

![Health badge](/badges/g4t-webshot/health.svg)

```
[![Health](https://phpackages.com/badges/g4t-webshot/health.svg)](https://phpackages.com/packages/g4t-webshot)
```

###  Alternatives

[lakshmaji/thumbnail

Thumbnails for videos

108122.2k](/packages/lakshmaji-thumbnail)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14543.9k3](/packages/tomatophp-filament-media-manager)[lakshmajim/thumbnail

Thumbnails for videos

1088.0k](/packages/lakshmajim-thumbnail)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)

PHPackages © 2026

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