Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PHP Skeleton GeneratorNew to Visual Studio Code? Get it now.
PHP Skeleton Generator

PHP Skeleton Generator

Adrián García Sabaté

|
1,281 installs
| (1) | Free
With just a few steps, you can create PHP classes, interfaces, traits, and enums with all the properties and methods you need. (PSR-4 compatible)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

php-skeleton-generator Extension for Visual Studio Code

Looking for an easy and quick way to generate PHP code skeletons? Check out our "PHP Skeleton Generator" extension! With just a few steps, you can create PHP classes, interfaces, traits, and enums with all the properties and methods you need. Our assistant guides you through the process, asking you for the options you need and generating the code for you. Save time and effort when creating your PHP projects with "PHP Skeleton Generator"! Namespace is generated from PSR-4 autoload in composer file.

Features

  • Run php-skeleton-generate command from the command palette to generate a skeleton for a PHP files
    • Class
    • Interface
    • Enum
    • Trait

Usage

  1. Press Ctrl+Shift+P to open the command palette
  2. Type php-skeleton-generate and press Enter
  3. Chose a type of skeleton
  4. Enter the name of your file and press Enter
  5. Use the wizard to enrich your skeleton
  6. The skeleton for the PHP class will be generated

New Class

Class

New Interface

Interface

New Enum

Enum

New Trait

Trait

Planned Features

  • add psr4 support for autoload-dev
  • compatibility with other PHP versions

Requirements

  • Visual Studio Code
  • PHP 8

Credits

  • Adrián García

License

This extension is licensed under the MIT License.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft