Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpcr Shell Laravel Package

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.

View on GitHub
Deep Wiki
Context7
1.7.0
  • Allow installation with Symfony 8.
1.6.2
  • Switch to PSR-4 notation for composer.
1.6.1
  • Fixed phpdoc comments
  • Fixed AutoSaveSubscriber to actually work
1.6.0
  • Work with Jackalope 2.*.
1.5.0
  • If 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.
1.4.0
  • Support Symfony 6, drop PHP 7.4 support #210
1.3.0
  • Support PHP 8.0 #209
1.2.0
1.1.1

allow installation with symfony 4

1.1.0
  • [cd] Allow trailing slash on path. #189
  • [versioning] Fix node type check to use the PHPCR method for it. #190
  • [node:list] Fix node counting. #188
  • [query] Fix date formatting. #198
  • [query] Remove header "Index" from the result table as there is never any data output. #197
  • Fixed tests and styling, test with PHP 7. #194, #196
1.0.1
  • Fixed confirmation dialogs
1.0.0
  • Support for Symfony 3.0
  • Dropped support for Symfony < 2.8
  • Allow multiple args / options to be passed to aliased commands.
  • Show number of properties when listing.
  • Use Style CI
1.0.0-beta4

Bug fixes

  • [query] Enforce termination of queries with ";": fixes #162
  • [node:list] Single references not showing path
  • [node:edit] Multivalue references encoded as arrays when editing
  • [node:edit] Fixed undefined variable
  • [version] Versioning commands can use relative paths
  • [node:property:show] Text fields are truncated
  • [profile] Workspace given from CLI does not override profile workspace
  • [command] Removed node:definition command: Jackalope now supports this, and this command would never have worked, see: https://github.com/phpcr/phpcr-shell/issues/172
1.0.0-beta3

Features

  • [profile:show] Added command to display current profile
  • [query:update] Introduced expr() function to allow setting poperty values using expression language.
  • [node:list] Sort properties by default, added option to specify

Bug fixes

  • [embedded] No exit code returned
  • [profile] Profile configuration overwritten by session parameters
  • [node:list] Incorrect node count
1.0.0-beta2

Features

  • [profile:show] Added command to display current profile

Bug fixes

  • [embedded] No exit code returned
  • [profile] Profile configuration overwritten by session parameters
  • [node:list] Incorrect node count
1.0.0-beta1

BC Break

  • [DoctrinePhpcrBundle] Shell must now be initiated in a different way in embedded mode. The DoctrinePhpcrBundle will need to be updated.
  • [node:shared:remove] Removed this command and integrated it into node:remove instead (node:remove . --shared)

Bug fixes

  • [capability] Commands not being disabled based on capability
  • [config] Do not override CLI options with profile options
  • [node:remove] Cannot node:remove by UUID
  • [node:edit] Serialization of single value references doesn't work
  • [file:import] Irregular files are accepted
  • [query] Possible to try and execute query without a query

Enhancements

  • [node:list] Show primary node type and super-types
  • [node:list] Show property length
  • [autocomplete] Autocomplete now includes command names
  • [references] Show UUIDs when listing reference properties
  • [import/export] Renamed session import and export to session:import &

Features

  • [cli] Specify workspace with first argument
  • [config] Added user config for general settings
  • [config] Enable / disable showing execution times and set decimal expansion
  • [global] Refactored to use DI container and various general improvements
  • [node:property:set] Allow setting reference property type by pathsession:export
  • [node:references] Shows the referencing node paths instead of the referrered-to node path(s)
  • [node:remove] Immediately fail when trying to delete a node which has a (hard) referrer
  • [node] Added wilcard support to applicable node commands, including "node:list", "node:remove" and "node:property:show"
  • [query:update] Added APPLY method to queries, permits addition and removal of mixins
  • [transport] Added transport layer for experimental Jackalope FS implementation
1.0.0-alpha6

Features

Bug fixes

  • [mixin] Node mxin remove does not accept a path
  • [node:edit] Cannot edit nodes with multivalue References

Enhancements

  • [deps] The PHPCR implementations have been moved to require-dev
  • [exit] Ask for confirmation before logging out when there are pending changes
1.0.0-alpha5

This 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.

Features

  • [node:edit] New command node:edit enables editing of entire node
  • [shell] Added "shell:clear" command to support clearing the console output
  • [general] The shell supports being embedded as a dependency

Bug Fixes

  • [query] Disabled updating multivalue properties where properties have more than one value with the UPDATE, as currently other items are overwritten and data is lost. See: https://github.com/phpcr/phpcr-shell/issues/85
  • [shell] Multivalue (and so multiline) property values are truncated as a single string (#70)
1.0.0-alpha4

Features

  • [node] copy,move and clone - Target paths automatically append basename if target is a node.
  • [query] Always show path next to resultset
  • [node|shell] Most commands which accept a node path can also accept a UUID
  • [node] node:list: Show node primary item value
  • [query] Support for UPDATE queries
  • [query] Support for DELETE queries

Bugs Fixes

  • [args] 28 instances of bad InputArgument constructor fixed
  • [node] node:list Catch exceptions when rendering property rows (e.g. on invalid references)
1.0.0-alpha3

Features

  • [file]: file:import - New command to import files into the repository.
  • [node]: node:list Added --level option to rescursively show children nodes and properties.
  • [node]: node:list Show "unulfilled" property and child node definitions when listing node contents.

Improvements

  • [export]: session:export:view: Added --pretty option to session:export:view command to output formatted XML.
  • [export]: session:export:view: Ask confirmation before overwriting file.
  • [shell]: Autocomplete completes property names in addition to node names in current path.

Bugs

  • [shell]: Aliases do not allow quoted arguments.
  • [shell]: Autocomplete causes segfault.
1.0.0-alpha2

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:
0.1.0

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
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor