Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bundles Cms Laravel Package

kunstmaan/bundles-cms

Kunstmaan CMS is a full-featured, multilingual CMS built on the Symfony full-stack framework. It offers page and form assembly, versioning, workflow, translation tools, and media management, plus integrations with community bundles.

View on GitHub
Deep Wiki
Context7

KunstmaanMediaBundle

Add Aviary image editor

This document describes how you can enable the Aviary image editor to the KunstmaanMediaBundle.

Add Api Key to parameters.yml:

Register and get your Api Key on http://www.aviary.com/

    parameters:
      ...
      aviary_api_key: 'XXXXXXX'

Now you will get an "edit" button when you view an image.

Add media handler

This document describes how you can add a new media handlers to the KunstmaanMediaBundle.

Create a MediaHandler

Create a MediaHelper

Add the mediahandler service:

    service:
        ...
        pdf:
            default: false
            id: kunstmaan_media.provider.pdf

MediaField

A field for media references. It has a "choose" button which opens a popup where you can select your media item from the media repository.

Example Usage:

$builder->add('ogImage', 'media', array(
    'mediatype' => 'image',
    'label' => 'OG image'
));

Options:

mediatype: type: string default: null description: You can specify a specific mediahandler by its name, when this is null all media items are possible. Knows possible values are: image|file|remotevideo|remoteslide

Parent type:

form

Class:

Kunstmaan\MediaBundle\Form\Type\MediaType

Uploading Media in Your Code

Using the MediaCreatorService you can easily upload a media-asset to a Folder.

The API is straightforward:

    $mediaCreatorService = $this->container->get('kunstmaan_media.media_creator_service');
    $media = $mediaCreatorService->createFile('./app/Content/Images/placeholder.jpg', 1);

The path is relevant to the root of your Symfony project. The context can be either web or console. You'll have to set this to console when you are calling the code from an environment outside of your webserver. For example for a migration you would use the console context. Otherwise you can just omit the parameter so the default web context is used.

Commands:

Clean Deleted Media Command:

Description:

Removes all files from the filesystem related to Media that has been flagged as deleted in the database.

Invoked by: bin/console kuma:media:clean-deleted-media

Options:

--force/-f : Does not prompt the user if he is certain he wants to remove all deleted Media from the filesystem.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views