Skip to content

Commit d682030

Browse files
committed
📦 NEW: Add boilerplate
1 parent 10f2978 commit d682030

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?php
2+
// Silence is golden.

php-annotations.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/*
3+
Plugin Name: PHP Annotations
4+
Plugin URI: https://marcuskober.de
5+
Description: Example plugin that uses php annotation for registering hooks
6+
Version: 1.0.0
7+
Requires at least: 6.0
8+
Requires PHP: 8.1
9+
Author: Marcus Kober
10+
Author URI: https://marcuskober.de
11+
Text Domain: phpannotations
12+
*/
13+
14+
if (! defined('ABSPATH')) {
15+
die('Go away');
16+
}
17+
18+
define('PHPAN_DIR', plugin_dir_path( __FILE__ ));
19+
define('PHPAN_URL', plugin_dir_url( __FILE__ ));
20+
define('PHPAN_BASENAME', plugin_basename( __FILE__ ));
21+
define('PHPAN_VERSION', '1.0.0');
22+
23+
require PHPAN_DIR . 'vendor/autoload.php';

0 commit comments

Comments
 (0)