PHPackages                             alexeyplodenko/sitecode - 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. [Admin Panels](/categories/admin)
4. /
5. alexeyplodenko/sitecode

ActiveLibrary[Admin Panels](/categories/admin)

alexeyplodenko/sitecode
=======================

Filament v4 basic CMS like plugin. Adds pages management with page structure defined in .php files.

v1.0.8(3mo ago)018CC-BY-NC-4.0PHPPHP ^8.2

Since Jan 18Pushed 3mo agoCompare

[ Source](https://github.com/AlexeyPlodenko/sitecode)[ Packagist](https://packagist.org/packages/alexeyplodenko/sitecode)[ RSS](/packages/alexeyplodenko-sitecode/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (4)Versions (10)Used By (0)

Sitecode
========

[](#sitecode)

Are you a developer in need to manage website page texts and images? This Filament plugin does exactly that.

You create a Laravel Blade page template. Specify the editable content with PHP code. Create the page through the Filament admin with the created Blade template and voilà! Your page is live and editable.

[Check the example in Usage](#usage)

Filament plugin
---------------

[](#filament-plugin)

Filament v4 and v5 basic CMS like plugin. This plugin adds page management with page structure defined in `.admin.php` files.

This plugin allows to:

- Create, edit and disable pages;
- Assign pages to routes;
- Edit page text, images and videos.

Provides a robust cache. That caches the whole page completely and serves it using only the web server, without triggering any PHP processing. That reduces the page load times significantly and is crucial for those sweet Lighthouse SEO optimized green metrics. With this cache enabled, your web server would send your page within 10ms.

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

[](#installation)

1. Install Laravel
2. Install Filament with `panels`
3. Run `composer require alexeyplodenko/sitecode`.
4. Create the following directories and give PHP write and web server read permissions:
    1. `/public/media/` for image and file uploads
    2. `/public/sitecode_static_cache/` for pages cache
5. Create a public disk, if you need to edit images and files in Sitecode. Go to `/config/filesystems.php`, add the following to the `'disks'` array: ```
    'sitecode_public_media' => [
        'driver' => 'local',
        'root' => public_path('media'),
        'url' => env('APP_URL').'/media',
        'visibility' => 'public',
        'throw' => true,
        'report' => true,
    ],
    ```
6. Register the plugin in Filament AdminPanelProvider `/app/Providers/Filament/AdminPanelProvider.php`: ```
