phpcr/phpcr-shell
Command-line shell for PHPCR repositories. Build and run as a PHAR for easy distribution, and use it to connect to a PHP Content Repository, browse nodes, and execute repository commands. Documentation available on Read the Docs.
XDG_DATA_HOME is defined, it is now used as location where to store the history.
If you have set XDG_DATA_HOME to something else than HOME, you can preserve your phpcr-shell history by moving the directory ~/.history_PHPCRSH to $XDB_DATA_HOME/.history_PHPCRSH.allow installation with symfony 4
expr() function to allow setting poperty values using expression language.node:remove instead (node:remove . --shared)node:remove by UUIDsession:import &session:exportThis release features a new command node:edit which replaces node:property:edit, and enables the edition (or creation) of a complete node.
It also adds a temporary limitation to the UPDATE command when updating multi-value properties. Before this release updating a multivalue property with more than one element would remove all existing elements. Now we only allow updating single-valued multi-value properties until a better solution is implemented.
node:edit enables editing of entire nodenode:list: Show node primary item valuenode:list Catch exceptions when rendering property rows (e.g. on invalid references)file:import - New command to import files into the repository.node:list Added --level option to rescursively show children nodes and properties.node:list Show "unulfilled" property and child node definitions when listing node contents.session:export:view: Added --pretty option to session:export:view command to output formatted XML.session:export:view: Ask confirmation before overwriting file.This release introduces profile support:
Use a profile:
$ phpcrsh --profile myprofile
Create a profile:
$ phpcrsh --transport=doctrine-dbal --db-user=foo --db-pass=bar --phpcr-workspace=baz
Launch profile selector:
$ phpcrsh
No connection parameters, given. Select an existing profile:
(0) dtlweb
(1) jr_test
(2) pocms
Enter profile number:
This is an early release of the current master branch as I am going to start working on a more feature complete and tested branch.
I am intending to do a big rewrite in order to fully implement the PHPCR interface: https://github.com/phpcr/phpcr-shell/wiki/Proposed-API
Until then this is already a nice way to browse the repository, but I take no responsibility for any damage that might be caused with destructive commands.
To install:
wget https://github.com/phpcr/phpcr-shell/releases/download/0.1.0/phpcr.phar
sudo mv phpcr.phar /usr/local/bin/phpcr
sudo chmod a+x /usr/local/bin/phpcr
To connect to doctrine dbal:
$ phpcr --transport=doctrine-dbal --db-name=yourdbname
or with jackrabbit
$ phpcr --transport=jackrabbit
How can I help you explore Laravel packages today?