PHPackages                             oranfry/jars - 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. oranfry/jars

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

oranfry/jars
============

5.0.1(2d ago)026PHP

Since Sep 17Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/oranfry/jars)[ Packagist](https://packagist.org/packages/oranfry/jars)[ RSS](/packages/oranfry-jars/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (27)Versions (95)Used By (0)

Jars
====

[](#jars)

Install Jars
------------

[](#install-jars)

I this document, I'm using:

- `$HOME/Projects/jars` for the installation directory, but you could use anything. For production I use `/var/www/jars`.
- `$HOME/Projects/jars/var` as the variable files directory, but for production I would use `/var` (the default).

Get the project:

```
cd "$HOME/Projects"
git clone https://github.com/oranfry/jars.git
cd jars

composer install
npm install
./build
```

Test Jars
---------

[](#test-jars)

```
cd "$HOME/Projects/jars"
./test

```

Initialise a blank database for your portal
-------------------------------------------

[](#initialise-a-blank-database-for-your-portal)

An empty database is just an empty directory:

```
mkdir -p "$HOME/Projects/jars/var/dbs/myportal"

```

Create your portal
------------------

[](#create-your-portal)

```
mkdir -p "$HOME/Projects/jars/var/portals/myportal"

// Generate a sequence secret
php -r 'echo base64_encode(random_bytes(63)) . "\n";'

```

Create the file `$HOME/Projects/jars/var/dbs/myportal/portal.php` with these contents, replacing SECR3T with your secret as generated above

```
