eecli/bootstrap

There is no license information available for the latest version (v1.4.0) of this package.

Bootstrap the ExpressionEngine environment

Maintainers

Package info

github.com/rsanchez/ExpressionEngine-Bootstrap

pkg:composer/eecli/bootstrap

Statistics

Installs: 9 906

Dependents: 1

Suggesters: 0

Stars: 34

v1.4.0 2016-01-14 22:38 UTC

This package is auto-updated.

Last update: 2026-03-08 09:47:35 UTC


README

This file "bootstraps" the EE environment, so you use the ee() function to access the instance.

Useful for little one off scripts, or cron jobs that need access to the EE environment.

Example:

<?php
$system_path = '/path/to/system/folder';
include '/path/to/bootstrap-ee2.php';

// cron job to close status of entries older than one year
ee()->db->where('entry_date <', now() - (365*24*60*60))
        ->update('channel_titles', array('status' => 'closed'));

Using with composer

composer require eecli/bootstrap ~1.2
<?php
$system_path = '/path/to/system/folder';
include 'vendor/eecli/bootstrap/bootstrap-ee2.php';