gabrielelana / spaceland
List available classes/traits/functions in a project
Installs: 1 490
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/gabrielelana/spaceland
Requires
- nikic/php-parser: ^4.2
- symfony/console: ^4.2
- symfony/finder: ^5.0
Requires (Dev)
- phpstan/phpstan: ^0.12.2
This package is auto-updated.
Last update: 2025-10-10 04:02:37 UTC
README
List available classes/traits/functions in a PHP project
Why
The primary usage is to automate the use of the use statements in
editors like Emacs or Vim.
When you write in your editor something like
$app->get('/ping, function(Request $req) {
// ...
});
You need to remember that the full name of Request is
Symfony\Component\HttpFoundation\Request so that you can add the
appropriate use statement
use Symfony\Component\HttpFoundation\Request;
With spaceland you can explore your project and its dependencies so
that you can automate the resolution process
./vendor/bin/spaceland locate:classes | grep Request
Installation
composer require --dev gabrielelana/spaceland