ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

PHP Namespace Monkey

Never write a PHP namespace declaration again.

Labels php, utilities

Details

Installs

  • Total 2K
  • Win 1K
  • Mac 281
  • Linux 434
Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3
Windows 0 0 1 0 0 1 2 0 0 0 0 0 1 1 0 1 1 1 1 0 0 2 0 1 1 0 0 0 0 0 0 1 2 1 0 0 1 0 0 0 0 0 1 0 1 1
Mac 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 2 0 0 0
Linux 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

PHP Namespace Monkey for Sublime Text

Never write a PHP namespace declaration again.

The namespace monkey pre-fills all created PHP files in a Composer-enabled project with a namespace declaration and optionally an empty class definition so you don't have to.

You can save literally seconds every day thanks to this package.

sublime-php-namespace-monkey

Available settings:

{
    // Namespace style
    // - same-line - Same line as PHP tag
    // - next-line - Next line after PHP tag
    // - psr-2 - One blank line after PHP tag (PSR-2)
    "namespace_style": "psr-2",

    // Include class definition
    "include_class_definition": true,

    // Include strict types declaration
    "declare_strict_types": false
}

Licence

Copyright © 2019 Miroslav Rigler

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.