Skip to content

Commit

Permalink
Add composer
Browse files Browse the repository at this point in the history
  • Loading branch information
imranhsayed committed Apr 30, 2022
1 parent db481bd commit a944272
Show file tree
Hide file tree
Showing 6 changed files with 355 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ node_modules/
*.log
*.sql
*.sqlite

/vendor/
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# aquila-features
Advanced WordPress Plugin Development

##setup
How to set up the plugin.

#development

- `npm install && composer install`
- `npm run dev`
1 change: 1 addition & 0 deletions aquila-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
* Domain Path: /languages
*/

require_once 'vendor/autoload.php';
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "imransayed/aquila-features",
"description": "Aquila Features WordPress Plugin",
"license": "GPL",
"require-dev": {
"wp-coding-standards/wpcs": "^2.3",
"phpcompatibility/phpcompatibility-wp": "^2.1"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"authors": [
{
"name": "Imran Sayed",
"email": "codeytek.academy@gmail.com"
}
],
"autoload": {
"psr-4": {
"AquilaFeatures\\": "src/"
},
"classmap": [
"includes/"
]
}
}
298 changes: 298 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions src/interfaces/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Module interface
*
* @package aquila-features
*/

namespace AquilaFeatures\Interfaces;

interface Module {

/**
* Register the module in WordPress
*
* Most of the modules follow fluent interface.
*/
public function register_this();
}

0 comments on commit a944272

Please sign in to comment.