New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

netflex/pages

Netflex Pages library
3,441
Install
composer require netflex/pages
Latest Version:v7.0.2
PHP:^8.4
Laravel:13
Older releases:7 · 8 · 12
License:MIT
Last Updated:Oct 21, 2026
Links: GitHub  ·  Packagist
Maintainer: thomas-alrek

Netflex Pages

Stable version Build status License: MIT Contributors Downloads

[READ ONLY] Subtree split of the Netflex Pages component (see netflex/framework)

Eloquent compatible model for working with Netflex Pages.

Stable version License: MIT Downloads

Installation

composer require netflex/pages

Generating configuration files

php artisan vendor:publish --tag=config

Configuring custom media presets

<?php

use Netflex\Pages\Components\Picture;

/**
 *
 */
return [
    'breakpoints' => [
        'xss' => 320,
        'xs' => 480,
        'sm' => 768,
        'md' => 992,
        'lg' => 1200,
        'xl' => 1440,
        'xxl' => 1920,
    ],

    'presets' => [
        'default' => [
            'mode' => Picture::MODE_ORIGINAL,
            'resolutions' => ['1x', '2x'],
        ],

        'banner' => [
          'mode' => Picture::MODE_LANDSCAPE,
          'resolutions' => ['1x', '2x'],
          'size' => [1920, 600],
          // Customize config per breakpoint:
          'breakpoints' => [
            'md' => [
              'mode' => Picture::MODE_FIT,
              'resolutions' => ['1x'].
            ],
            'lg' => 'md', // Aliasing 'lg' breakpoint to 'md'
          ]
        ],
    ],
];

Example usage

<?php

use Netflex\Pages\Page;

$page = Page::find(10000);

$slug = 'top-10-tricks-for-working-with-netflex';
$pageForUrl = Page::resolve($slug);

$firstPage = Page::first();
$lastPage = Page::last();

$newestPage = Page::orderBy('updated', 'desc')->first();

$freshPage = new Page([
  'name' => 'Fresh new article',
  'author' => 'John Doe',
  'content' => '<h1>Hello world!</h1>'
]);

$freshPage->save();

Contributing

Thank you for considering contributing to the Netflex Pages! Please read the contribution guide.

Code of Conduct

In order to ensure that the community is welcoming to all, please review and abide by the Code of Conduct.

License

Netflex Pages is open-sourced software licensed under the MIT license.


Copyright © 2020 Apility AS

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
v7.0.2 ^8.4 ^13.0 MIT
v7.0.1 ^8.4 ^13.0 MIT
v7.0.0 ^8.4 ^13.0 MIT
v6.7.3 ^8.4 ^12.0 MIT
v6.7.2 ^8.4 ^12.0 MIT