Skip to main content

Anonymous menu

GroupBroughtto you byno-one Homepage of Compony, brought to you by no-one

Search

  • Login / register
  • Components
  • Collections
  • Create component
    • Getting started
    • Documentation
    • Blog
    • Services
    • FAQ
    • About us
Documentation / The Compony Gulp / Features /

PHP linting

  • Documentation
    • The Compony Theme
      • Theme folder structure
        • Required structure
        • The components folder
      • Components
        • The concept
          • Component structure
          • What makes a component?
          • Component naming convention
        • The parts
          • libraries.yml
          • component.html.twig
            • Grouping
            • Extending
              • The concept
              • Twig-blocks
            • Attaching libraries
            • Reordering fields
          • component.scss
            • Sass categories
            • Sass-essentials
            • Sass variables
            • Multiple component Sass files
            • Pitfalls and anti-patterns
            • Extra tools
          • Assets
          • JavaScript
            • Recommendations
            • Libraries
            • Frameworks
          • component.theme
            • Introduction
            • Business logic vs presentation logic
            • Hooks explained for dummies
            • Extended existing hooks
            • Extending hooks yourself
          • .component.yml
    • The Compony Gulp
      • Theme orientation
      • Configuring Gulpfile.js
        • gulpfile.js orientation
        • local.config.js
          • Features
          • Notifications
        • project.config.js
          • gulpthemes
          • Features
      • Getting started
        • Prerequisites
        • Installation
        • Gulp commands
      • Features
        • Generating dist-folders
        • HTML Linter
        • Image optimisation
        • Sass
          • Globbing
          • Linting
          • Source maps
          • Autoprefixer
          • Component partials
          • Cross-component mixins and variables
        • JavaScript
          • Linting
          • Uglify
          • Tree shaking
          • Babelify and Browserify
          • Component partials
          • Third party libraries
        • Yaml validation
        • PHP linting
        • Browsersync
        • Cleaning up empty directories
        • Rebuilding Drupal’s cache
        • Refactoring-friendly

Components can have a my-component.theme file, therefor Gulp has a PHP linter that detects formatting errors.

Read more about component.theme files.

Book traversal links for PHP linting

  • ‹ Yaml validation
  • Browsersync ›
Your logo here

Supported by no-one?

We are looking for 1 sponsor to become the face of Compony for each country! 

You could lead and support your local Frontend Drupal community.

Become the local face of Compony