PHPackages                             mvenghaus/magento2-script-bootstrap - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mvenghaus/magento2-script-bootstrap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mvenghaus/magento2-script-bootstrap
===================================

Bootstrap for your magento 2 scripts

1.1.0(1y ago)3409MITPHPPHP ^8.1

Since Apr 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mvenghaus/magento2-script-bootstrap)[ Packagist](https://packagist.org/packages/mvenghaus/magento2-script-bootstrap)[ RSS](/packages/mvenghaus-magento2-script-bootstrap/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Magento 2 - Script Bootstrap
============================

[](#magento-2---script-bootstrap)

Run your (quick &amp; dirty) scripts with the usual comfort
-----------------------------------------------------------

[](#run-your-quick--dirty-scripts-with-the-usual-comfort)

Sometimes, you might want to run small Magento scripts without creating an additional module for them. To achieve this, you need to bootstrap Magento yourself. This is where this module comes in handy, it manages the bootstrap process for you.

What are the benefits?

- instant setup (1 simple file)
- no module means no deployment (setup:upgrade, ...)

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

[](#installation)

```
composer require mvenghaus/magento2-script-bootstrap
```

**NOTE** It's not a magento module so you don't have to run setup:upgrade.

Basic Example
-------------

[](#basic-example)

Let's assume you have a folder "scripts" in your root directory.

scripts/hello-world.php

```
