https://github.com/gabrielelana/spaceland
List available classes/traits/functions in a PHP project
https://github.com/gabrielelana/spaceland
emacs php7 vim
Last synced: 3 months ago
JSON representation
List available classes/traits/functions in a PHP project
- Host: GitHub
- URL: https://github.com/gabrielelana/spaceland
- Owner: gabrielelana
- Created: 2018-12-07T08:55:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-09T14:54:33.000Z (over 6 years ago)
- Last Synced: 2025-10-23T06:59:33.882Z (9 months ago)
- Topics: emacs, php7, vim
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spaceland
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
``` php
$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
``` php
use Symfony\Component\HttpFoundation\Request;
```
With `spaceland` you can explore your project and its dependencies so
that you can automate the resolution process
``` shell
./vendor/bin/spaceland locate:classes | grep Request
```
## Installation
``` shell
composer require --dev gabrielelana/spaceland
```