PHPackages                             scwi/screen-width - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. scwi/screen-width

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

scwi/screen-width
=================

Detect and use screen width in Laravel

v2.01(11mo ago)156MITPHP

Since Jun 11Pushed 4mo agoCompare

[ Source](https://github.com/Santhoshkumarsk10/screenWidth)[ Packagist](https://packagist.org/packages/scwi/screen-width)[ RSS](/packages/scwi-screen-width/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

About Screenwidth
-----------------

[](#about-screenwidth)

Screenwidth is a PHP Laravel package with an easy-to-use syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Screenwidth takes the pain out of development by simplifying common tasks used in many web projects, such as:

Easy-to-use helper functions

Detect device type based on screen width

Check for a specific device type

Screenwidth is accessible, powerful, and acts as a handy tool required for large, robust applications.

Using Screenwidth
-----------------

[](#using-screenwidth)

Unlike CSS-based media queries that react in real-time as the user resizes the window, this package debounces the network request and updates the view on the next page load. This makes it more reliable for backend-based rendering logic.

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

[](#installation)

```
composer require scwi/screen-width v2

```

Default Breakpoints
-------------------

[](#default-breakpoints)

The default breakpoints are shown below:

```
