https://github.com/ctf0/vscode-php-array-symbol-provider
https://github.com/ctf0/vscode-php-array-symbol-provider
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ctf0/vscode-php-array-symbol-provider
- Owner: ctf0
- License: gpl-3.0
- Created: 2022-12-07T00:23:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T18:57:43.000Z (about 3 years ago)
- Last Synced: 2024-10-11T12:18:59.699Z (over 1 year ago)
- Language: TypeScript
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Php Array Symbol Provider
a symbol provider support for php arrays, similar to json files ex.
- config
```php
[
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'host' => env('PUSHER_HOST'),
]
],
'ably' => [
'driver' => 'ably',
'key' => env('ABLY_KEY'),
],
// etc ...
],
];
```
- class
```php
1
];
public function q() {
$this->q = [
'a',
'b',
'c' => 1
];
$ss = [
'x' => 0,
'y' => 2,
'z' => 1
];
}
public function method() {
return [
1,
2,
3,
];
}
}
```
- plain
```php
1
];
function method() {
$abc = [
'x' => 0,
'y' => 2,
'z' => 1
];
return [
1,
2,
3,
];
}
```