Download the PHP package tareqas/psym without Composer
On this page you can find all versions of the php package tareqas/psym. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package psym
pSym
A REPL for Symfony and PHP
pSym works both inside and outside Symfony project. When used within a Symfony project, it provides additional
features such as access to variables like $kernel
, $container
, $doctrine
, and $em
.
Additionally, all registered project commands become accessible as well.
The lse
command and table()
, sql()
, and dql()
functions are available when Doctrine is installed.
Function html()
and features like auto-completion
, auto-suggestion
, and doc-and-signature
work universally.
Installation
To install it, create a project using composer create-project
in your preferred location. It supports
PHP versions >=7.2
and works with Symfony versions 4
, 5
, 6
, and 7
.
Next, add the your-psym-installation-path/psym/bin/
directory to your system's PATH, so you can run the
psym
command directly from your shell.
Warning: Do not install it as a global or local package; it won't work.
Commands
Auto-complete and Auto-suggestion
To get suggestions, press the TAB
key.
Note: Sometimes you may need to press
SPACE
first and thenTAB
.
Documentation and Signature
You can view PHPDoc documentation and signature for function
, property
, and method
.
lse
The lse
command lists all entities managed by Doctrine.
html()
The html()
function dumps variables and renders them as a browsable HTML page. If any of your variables contain
Doctrine objects, it will automatically instantiate all proxy objects.
You can fine-tune the dump by providing additional options in the last parameter as an associative array:
table()
The table()
function retrieves a repository for a given entity. It returns a Doctrine\ORM\EntityRepository
if no alias is provided, or a Doctrine\ORM\QueryBuilder
if an alias is specified.
sql()
The sql()
function executes raw SQL queries and returns the result as an associative array.
Doctrine is required to use this feature.
dql()
The dql()
function allows you to execute DQL queries and also returns the result as an associative array.
Limitation: Auto-completion may have limitations with entity classes due to backslashes (\). Other features work as expected.
And more
To unlock the full potential, explore the PsySH documentation. pSym is built on top of PsySH.
All versions of psym with dependencies
ext-json Version *
ext-tokenizer Version *
jetbrains/phpstorm-stubs Version @dev
phpstan/phpdoc-parser Version ^1.30
psy/psysh Version ^0.11