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

KunstmaanUtilitiesBundle

Cipher

Cipher is a helpful service to encrypt and decrypt string values. At the moment there are two cipher implementations available which you can use:

  • Kunstmaan\UtilitiesBundle\Helper\Cipher\Cipher: which will encrypt and decrypt using mcrypt.
  • Kunstmaan\UtilitiesBundle\Helper\Cipher\UrlSafeCipher: which is an extension of the default one, which encrypts the string to a url safe string value by converting it to a hexadecimal encoded binary string.

To start using cypher you must first configure the cipher secret in your parameters.yaml:

kunstmaan_utilities.cipher.secret: '<YOUR_SECRET_HERE>'

The default implementation that is used is the Kunstmaan\UtilitiesBundle\Helper\Cipher\UrlSafeCipher, to use another cipher implementation you can define the class you want to use in your parameters.yaml as follows:

kunstmaan_utilities.cipher.class: '<YOUR_CLASS_HERE>'

The custom cipher class should extend Kunstmaan\UtilitiesBundle\Helper\Cipher\CipherInterface

When the service is configured properly you can start using the cipher as follows:

$cipher = $container->get('kunstmaan_utilities.cipher');
$encryptedValue = $cipher->encrypt('YOUR STRING HERE');
$decryptedValue = $cipher->decrypt($encryptedValue);

Shell

Shell is a helpfull service which makes it possible to execute shell commands in the background. Next to executing the commands it is also possible to check if the process is still running and kill the process.

You can start using the service for executing a shell command as follows:

$shell = $container->get('kunstmaan_utilities.shell');
$pid = $shell->runInBackground('<YOUR_COMMAND_HERE>');

The runInBackground function will always return the process id. You can also define the priority for the process:

$shell = $container->get('kunstmaan_utilities.shell');
$pid = $shell->runInBackground('<YOUR_COMMAND_HERE>', 10);

When the process is running you can check if it's still running or kill it as follows:

$shell = $container->get('kunstmaan_utilities.shell');
$running = $shell->isRunning('<YOUR_PROCESS_ID');
$success = $shell->kill('<YOUR_PROCESS_ID');

Be aware when you use the kill method, make sure you don't use for example a http parameter as $pid because then you have a security hole !!!

When you want to define your own Shell implementation then it should implement the Kunstmaan\UtilitiesBundle\Helper\ShellInterface.

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