wordpress-plugin wp-plugin-boilerplate
        An object-oriented boilerplate for developing high-quality, testable WordPress plugins
    
            
                
                    
                    
                    
                    
                        
                            
    
        
        
            regularjack/wp-plugin-boilerplate
            An object-oriented boilerplate for developing high-quality, testable WordPress plugins
         
     
    
        
            -  Saturday, November 19, 2016
-  by regularjack
-  Repository
-  1 Watchers
-  8 Stars
-  15 Installations
 
    
        
                            - PHP
-  0 Dependents
-  0 Suggesters
-  1 Forks
-  0 Open issues
-  2 Versions
-  0 % Grown
 
 
    
        
            
    
    
    
WP Plugin Boilerplate
An object-oriented boilerplate for developing high-quality, testable WordPress plugins., (*1)
 
 , (*2)
, (*2)
This is an experiment. You probably don't want to use it yet., (*3)
Features
- Autoload PHP classes
- Use PHP namespaces
- No more need to includeevery plugin file
 
- Unit Testing
- Testing with PHPunit works out of the box
- Just write your test class and run phpunit
- Ready for travis
 
- Integration with WP-CLI
- And more:
Installation
Install directly into the plugins folder of a WordPress installation and then rename from wp-plugin-boilerplate to whatever you want your plugin to be named (the following commands assume your plugin will be named wp-foo):, (*4)
cd wp-content/plugins
git clone git@github.com:regularjack/wp-plugin-boilerplate.git wp-foo
cd wp-plugin-boilerplate
mv languages/wp-plugin-boilerplate.pot languages/wp-foo.pot
find . -type f -exec sed -i 's/WP Plugin Boilerplate/WP Foo/g' {} +
find . -type f -exec sed -i 's/WpPluginBoilerplate/WpFoo/g' {} +
find . -type f -exec sed -i 's/wp-plugin-boilerplate/wp-foo/g' {} +
rm -rf README.md .git
Ack