2017 © Pedro Peláez
 

library phpstorm-metadata-export

Export PhpStorm Advanced Metadata from DI containers

image

sandfoxme/phpstorm-metadata-export

Export PhpStorm Advanced Metadata from DI containers

  • Sunday, March 11, 2018
  • by sandfox.me
  • Repository
  • 2 Watchers
  • 2 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 22 % Grown

The README.md

Metadata Exporter for PhpStorm

![Packagist] ![license] ![Code Climate] ![Gitlab pipeline status] ![Codecov], (*1)

Export PhpStorm Advanced Metadata from DI containers to enable code completion., (*2)

The library is inspired by Pimple Container Dumper for Silex, but it doesn't require IDE plugin because it uses native PhpStorm export format. It can integrate with any PSR-15 compliant framework and is extensible to support more DI containers and frameworks in the future., (*3)

Installation

Install by composer, (*4)

composer require arokettu/phpstorm-metadata-export --dev

Container Support

Supported containers:, (*5)

Integration middlewares for:, (*6)

Example

<?php

$container = new \DI\Container();
// .phpstorm.meta.php must be in a root path of your project
$storePath = __DIR__ '/.phpstorm.meta.php/sandfox_container_export.meta.php';

// just generate the file content
$metaPhp = \Arokettu\PhpStorm\Metadata\Generator::get([$container]);
file_put_contents($storePath, $metaPhp);

// use middleware (Slim 4 example)
$app = new \Slim\App();
$app->addMiddleware(new \Arokettu\PhpStorm\Metadata\Integration\ContainerExportMiddleware($container, [
    'filename' => $storePath,
]));

Documentation

Read full documentation at https://sandfox.dev/php/metadata-exporter-phpstorm.html, (*7)

Also on Read the Docs: https://phpstorm-metadata-export.readthedocs.io/, (*8)

Support

Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/phpstorm-metadata-export/-/issues, (*9)

Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community, (*10)

License

The library is available as open source under the terms of the MIT License. See LICENSE.md., (*11)

The Versions

11/03 2018

dev-master

9999999-dev

Export PhpStorm Advanced Metadata from DI containers

  Sources   Download

MIT

The Requires

  • php >= 7.0

 

The Development Requires

dependency injection silex slim pimple phpstorm code completion

03/03 2018

1.1.0

1.1.0.0

Export PhpStorm Advanced Metadata from DI containers

  Sources   Download

MIT

The Requires

  • php >= 7.0

 

The Development Requires

dependency injection silex slim pimple phpstorm code completion

24/02 2018

1.0.1

1.0.1.0

Export PhpStorm Advanced Metadata from DI containers

  Sources   Download

MIT

The Requires

  • php >= 7.0

 

The Development Requires

dependency injection silex slim pimple phpstorm code completion

22/02 2018

1.0.0

1.0.0.0

Export PhpStorm Advanced Metadata from DI containers

  Sources   Download

MIT

The Requires

  • php >= 7.0

 

The Development Requires

dependency injection silex slim pimple phpstorm