Download the PHP package code16/occulta without Composer

On this page you can find all versions of the php package code16/occulta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package occulta

Occulta

Purpose

Save a versioned and encrypted copy of .env on a storage disk (eg: S3)

How it works

Occulta uses AWS KMS and Envelope encryption strategy to encrypt your .env file and store it on a given laravel disk (eg: S3). It also keeps a versioned history of your encrypted .env files, so you can restore previous versions if needed.
Occulta will create an archive containing your encrypted environment file and an encrypted key file, which will be used by occulta to decrypt your env when needed.

Installation

This package requires Laravel 11.x or higher, php's extensions openssl and zip.

You can install the package via composer:

Next you should publish the config file :

and setup your values (especially the kms key_id and destination disk) in your config/occulta.php file :

Then, you should setup credentials to the proper aws user allowed to "use" the given kms key, by adding a kms section in your config/services.php file :

Now you should schedule tasks for backup and cleanup in app/Console/Kernel.php (bootstrap/app.php since Laravel 11) :

Decrypting an encrypted env archive

If you need to decrypt an encrypted env archive, you can use the occulta:decrypt command:

Occulta will use your KMS configuration and AWS access and secret keys to decrypt your env file.

[!IMPORTANT]
It is likely that these credentials where in your lost .env, then, you can follow the recovery procedure to restore your environment.

Testing

The package comes with a comprehensive test suite. To run the tests, you can use the following command:

The tests cover:

The tests use mocks for AWS KMS to avoid actual AWS calls during testing.


All versions of occulta with dependencies

PHP Build Version
Package Version
Requires php Version 8.3.*|8.4.*|8.5.*
ext-openssl Version *
ext-zip Version *
ext-zlib Version *
aws/aws-sdk-php Version ^3.222
illuminate/contracts Version ^11.0|^12.0|^13.0
laravel/prompts Version ^0.3.5
spatie/laravel-package-tools Version ^1.9.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package code16/occulta contains the following files

Loading the files please wait ...