Multiple fixes
* PDO shell improvements: .query command, -r and --db on command line to read commands from file or preselect database. * Updated build scripts and readme
This commit is contained in:
@@ -5,10 +5,14 @@ database migrations and project deployment.
|
||||
|
||||
## Installation
|
||||
|
||||
~~Download `spark.phar` and make it executable. If desired, alias `spark=spark.phar`.~~
|
||||
~~You may also want to alias `sparksh='spark repl'`.~~
|
||||
System Requirements:
|
||||
|
||||
Download the latest release from [dev.noccylabs.info](https://dev.noccylabs.info/noccy/php-spark/releases)
|
||||
* PHP 8.0 or later (php-cli)
|
||||
* Linux or other POSIX compatible OS. Probably. May work on MacOS!
|
||||
|
||||
### From dist package
|
||||
|
||||
Download the latest dist release from [dev.noccylabs.info](https://dev.noccylabs.info/noccy/php-spark/releases)
|
||||
and extract it into a directory somewhere, such as `/tmp`:
|
||||
|
||||
```
|
||||
@@ -28,6 +32,43 @@ the `sparkplug`, `sparker`, `sparkres` and `sparksh` aliases. You can then
|
||||
install any new plugins into `~/opt/spark/plugins` and enable them in your
|
||||
projects with `sparkplug --enable the.plugin.name`.
|
||||
|
||||
### From installer
|
||||
|
||||
Download the latest installer release (the one that ends in `.run`)
|
||||
from [dev.noccylabs.info](https://dev.noccylabs.info/noccy/php-spark/releases)
|
||||
and make it executable:
|
||||
|
||||
```
|
||||
$ chmod +x spark-0.1.0-dist.run
|
||||
$ ./spark-0.1.0-dist.run
|
||||
```
|
||||
|
||||
Follow the instructions, select Yes when prompted to proceed with the installation.
|
||||
|
||||
### From source
|
||||
|
||||
Download the latest source release from [dev.noccylabs.info](https://dev.noccylabs.info/noccy/php-spark/releases)
|
||||
and extract it into a directory somewhere, such as `~/src/spark`. You can then build spark, using spark:
|
||||
|
||||
```
|
||||
$ unzip -d ~/src/spark spark-0.1.0-src.zip
|
||||
$ cd ~/src/spark
|
||||
$ bin/spark run build
|
||||
```
|
||||
|
||||
You can now install `spark.phar` where desired, and place the `plugins` directory in
|
||||
a good place. You want to add the following to your `.bashrc` or similar:
|
||||
|
||||
```
|
||||
export SPARK_PLUGINS="<path-to-plugins-dir>"
|
||||
# If you don't want to rename the .phar for some reason. Skip otherwise!
|
||||
alias spark=spark.phar
|
||||
# Useful aliases
|
||||
alias sparksh=spark repl
|
||||
alias sparkplug=spark plugins
|
||||
alias sparkpipe=spark pipe
|
||||
```
|
||||
|
||||
## Using Spark
|
||||
|
||||
### The easy way
|
||||
|
||||
Reference in New Issue
Block a user