Skip to content

Commit

Permalink
Merge pull request #25 from devuri/version-refactor-reverted-0-0-5
Browse files Browse the repository at this point in the history
refactor!: reverted back version numbers from the 5.x range to 0.0.5
  • Loading branch information
devuri authored Mar 14, 2024
2 parents 4d7c571 + 097074f commit f0350b9
Show file tree
Hide file tree
Showing 11 changed files with 82 additions and 82 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "devuri/wp-framework",
"name": "devuri/wpframework",
"type": "library",
"description": "Effortlessly develop scalable WordPress applications that support multiple tenants from a single installation.",
"keywords": [
Expand All @@ -16,7 +16,7 @@
"multitenant",
"devuri"
],
"homepage": "https://github.com/devuri/wp-framework",
"homepage": "https://github.com/devuri/wpframework",
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": true,
Expand All @@ -29,8 +29,8 @@
}
],
"support": {
"source": "https://github.com/devuri/wp-framework",
"issues": "https://github.com/devuri/wp-framework/issues"
"source": "https://github.com/devuri/wpframework",
"issues": "https://github.com/devuri/wpframework/issues"
},
"require": {
"php": "^7.4 || ^8.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h2>{{ site.description | default: site.github.project_tagline }}</h2>
</section>
<div class="footer" style="border-top: solid thin #333;padding: 8px;font-size: small;text-align: right;margin-top: 80px; color: #666;">
<small>
various project <a href="/wp-framework/metrics/"> metrics</a>.
various project <a href="/wpframework/metrics/"> metrics</a>.
</small>
</div>
</div>
Expand Down
52 changes: 26 additions & 26 deletions docs/changelog/index.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
## [5.0.2](https://github.com/devuri/wp-framework/compare/v5.0.1...v5.0.2) (2024-02-16)
## [5.0.2](https://github.com/devuri/wpframework/compare/v5.0.1...v5.0.2) (2024-02-16)


### Bug Fixes

* adds `/.maintenance` check for the config dir, to handle entire tenant network. ([b49eccc](https://github.com/devuri/wp-framework/commit/b49ecccdf2bb5c46fe884ad3abdc221030bb6917))
* adds `is_landlord()` check for conditional plugin options ([4de5a27](https://github.com/devuri/wp-framework/commit/4de5a27e2a8bde701902c2855383cbe24f12efd0))
* fix environment reset using `is_environment_null()` it will check null empty 0 etc ([30e3926](https://github.com/devuri/wp-framework/commit/30e39264bcb6c7b7d8ca7c72b8a2a11a099f33bc))
* update fix env return on null as empty string ([2dde351](https://github.com/devuri/wp-framework/commit/2dde3514842c4ad28dc2dc4787799c39d7a1d69c))
* uuid checks do not hash `LANDLORD_UUID` ([f079131](https://github.com/devuri/wp-framework/commit/f079131fd0fb5557f6c4cd35e497d5ec3ade9e81))
* adds `/.maintenance` check for the config dir, to handle entire tenant network. ([b49eccc](https://github.com/devuri/wpframework/commit/b49ecccdf2bb5c46fe884ad3abdc221030bb6917))
* adds `is_landlord()` check for conditional plugin options ([4de5a27](https://github.com/devuri/wpframework/commit/4de5a27e2a8bde701902c2855383cbe24f12efd0))
* fix environment reset using `is_environment_null()` it will check null empty 0 etc ([30e3926](https://github.com/devuri/wpframework/commit/30e39264bcb6c7b7d8ca7c72b8a2a11a099f33bc))
* update fix env return on null as empty string ([2dde351](https://github.com/devuri/wpframework/commit/2dde3514842c4ad28dc2dc4787799c39d7a1d69c))
* uuid checks do not hash `LANDLORD_UUID` ([f079131](https://github.com/devuri/wpframework/commit/f079131fd0fb5557f6c4cd35e497d5ec3ade9e81))


### Miscellaneous Chores

* build ([b502dcb](https://github.com/devuri/wp-framework/commit/b502dcb6d8d7ee653dbc3ce4c44d8664dd90469b))
* build ([14dea95](https://github.com/devuri/wp-framework/commit/14dea9582bad69d3281da02d46937461a2c1ecaa))
* build ([b502dcb](https://github.com/devuri/wpframework/commit/b502dcb6d8d7ee653dbc3ce4c44d8664dd90469b))
* build ([14dea95](https://github.com/devuri/wpframework/commit/14dea9582bad69d3281da02d46937461a2c1ecaa))

## [5.0.1](https://github.com/devuri/wp-framework/compare/v5.0.0...v5.0.1) (2024-02-16)
## [5.0.1](https://github.com/devuri/wpframework/compare/v5.0.0...v5.0.1) (2024-02-16)


### Bug Fixes

* required options, each tenant, must have their own configuration ([52c04eb](https://github.com/devuri/wp-framework/commit/52c04eb2e9a32971dcc3a6f3ae2401f2f3f36943))
* required options, each tenant, must have their own configuration ([52c04eb](https://github.com/devuri/wpframework/commit/52c04eb2e9a32971dcc3a6f3ae2401f2f3f36943))


### Miscellaneous Chores

* build ([cac6f96](https://github.com/devuri/wp-framework/commit/cac6f96b0e8820d6e730246b5dd782fefda76905))
* build ([8d8df5a](https://github.com/devuri/wp-framework/commit/8d8df5aa91028f6e4391a954d16c5a754e6101cc))
* build ([ba2f6d3](https://github.com/devuri/wp-framework/commit/ba2f6d311b1f10d40f649f545fa01c698cf49b10))
* build ([cac6f96](https://github.com/devuri/wpframework/commit/cac6f96b0e8820d6e730246b5dd782fefda76905))
* build ([8d8df5a](https://github.com/devuri/wpframework/commit/8d8df5aa91028f6e4391a954d16c5a754e6101cc))
* build ([ba2f6d3](https://github.com/devuri/wpframework/commit/ba2f6d311b1f10d40f649f545fa01c698cf49b10))

## [5.0.0](https://github.com/devuri/wp-framework/compare/v4.0.0...v5.0.0) (2024-02-16)
## [5.0.0](https://github.com/devuri/wpframework/compare/v4.0.0...v5.0.0) (2024-02-16)


### ⚠ BREAKING CHANGES
Expand All @@ -38,34 +38,34 @@

### Features

* use camelCase for function names. start with a verb indicating the action they perform. ([5980b90](https://github.com/devuri/wp-framework/commit/5980b90cf90df011cd37a05fbfd76f65060ad98f))
* use camelCase for function names. start with a verb indicating the action they perform. ([5980b90](https://github.com/devuri/wpframework/commit/5980b90cf90df011cd37a05fbfd76f65060ad98f))


### Miscellaneous Chores

* build ([140efd5](https://github.com/devuri/wp-framework/commit/140efd5e6503b19f5e648624ff3aa507ea7176d0))
* build ([c370335](https://github.com/devuri/wp-framework/commit/c3703352b66bce11c5be57a745fe5ef357dd5db4))
* build ([2b6ea06](https://github.com/devuri/wp-framework/commit/2b6ea063a9ed10d21cc439251a0258d537c29ac5))
* build ([c9f2c51](https://github.com/devuri/wp-framework/commit/c9f2c51a11dd7e0c91df1b9fe25f5d5238afc464))
* codefix ([c9ebae2](https://github.com/devuri/wp-framework/commit/c9ebae221d231cb0f0a44b46cc14aa69f4c45b80))
* fix test ([45c84bf](https://github.com/devuri/wp-framework/commit/45c84bf193f9bbee59c8aa38fb9f3208b43a06ee))
* readme ([bac1773](https://github.com/devuri/wp-framework/commit/bac1773619dc2cdf084087da5b46ace7cdf0805b))
* build ([140efd5](https://github.com/devuri/wpframework/commit/140efd5e6503b19f5e648624ff3aa507ea7176d0))
* build ([c370335](https://github.com/devuri/wpframework/commit/c3703352b66bce11c5be57a745fe5ef357dd5db4))
* build ([2b6ea06](https://github.com/devuri/wpframework/commit/2b6ea063a9ed10d21cc439251a0258d537c29ac5))
* build ([c9f2c51](https://github.com/devuri/wpframework/commit/c9f2c51a11dd7e0c91df1b9fe25f5d5238afc464))
* codefix ([c9ebae2](https://github.com/devuri/wpframework/commit/c9ebae221d231cb0f0a44b46cc14aa69f4c45b80))
* fix test ([45c84bf](https://github.com/devuri/wpframework/commit/45c84bf193f9bbee59c8aa38fb9f3208b43a06ee))
* readme ([bac1773](https://github.com/devuri/wpframework/commit/bac1773619dc2cdf084087da5b46ace7cdf0805b))

## [4.0.0](https://github.com/devuri/wp-framework/compare/v3.3.0...v4.0.0) (2024-02-14)
## [4.0.0](https://github.com/devuri/wpframework/compare/v3.3.0...v4.0.0) (2024-02-14)


### ⚠ BREAKING CHANGES

* rebrand moved `wp-env-config` is now `wp-framework` and `wp-env-app` is now `wptenancy`
* rebrand moved `wp-env-config` is now `wpframework` and `wp-env-app` is now `wptenancy`

### Features

* rebrand moved `wp-env-config` is now `wp-framework` and `wp-env-app` is now `wptenancy` ([7363ada](https://github.com/devuri/wp-framework/commit/7363ada192f176ccf91b81f97779ee83f5315d67))
* rebrand moved `wp-env-config` is now `wpframework` and `wp-env-app` is now `wptenancy` ([7363ada](https://github.com/devuri/wpframework/commit/7363ada192f176ccf91b81f97779ee83f5315d67))


### Miscellaneous Chores

* build ([b350065](https://github.com/devuri/wp-framework/commit/b350065a3997be3c134a6692a7c507d240daafae))
* build ([b350065](https://github.com/devuri/wpframework/commit/b350065a3997be3c134a6692a7c507d240daafae))

## [3.3.0](https://github.com/devuri/wp-env-config/compare/v3.2.0...v3.3.0) (2024-02-14)

Expand Down
16 changes: 8 additions & 8 deletions docs/code/files/src-inc-mu-plugin-wpframework.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>WordPress Environment Configuration</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="../">
<link rel="icon" href="images/favicon.ico"/>
Expand Down Expand Up @@ -61,7 +61,7 @@ <h4 class="phpdocumentor-sidebar__root-namespace">
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/wpframework-component.html" class="">Component</a>

</li>
</ul>

Expand All @@ -73,7 +73,7 @@ <h4 class="phpdocumentor-sidebar__root-namespace">
</h4>

</section>

<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
Expand All @@ -94,7 +94,7 @@ <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Fil
<article class="phpdocumentor-element -file">
<h2 class="phpdocumentor-content__title">wpframework.php</h2>




<h5 class="phpdocumentor-tag-list__heading" id="tags">
Expand All @@ -106,9 +106,9 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag__name">wordpress-plugin</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">

<section class="phpdocumentor-description"><p>Plugin Name: WP-Framework Core
Plugin URI: https://github.com/devuri/wp-framework
Plugin URI: https://github.com/devuri/wpframework
Description: Web Application Framework provides <code class="prettyprint">wpframework_init</code> action and bootstrap file.
Version: 0.0.2
Requires at least: 5.3.0
Expand All @@ -133,9 +133,9 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">








</article>
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
<section class="phpdocumentor-search-results__dialog">
Expand Down
16 changes: 8 additions & 8 deletions docs/code/files/src-inc-wpframework-core.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>WordPress Environment Configuration</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="../">
<link rel="icon" href="images/favicon.ico"/>
Expand Down Expand Up @@ -61,7 +61,7 @@ <h4 class="phpdocumentor-sidebar__root-namespace">
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/wpframework-component.html" class="">Component</a>

</li>
</ul>

Expand All @@ -73,7 +73,7 @@ <h4 class="phpdocumentor-sidebar__root-namespace">
</h4>

</section>

<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
Expand All @@ -94,7 +94,7 @@ <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Fil
<article class="phpdocumentor-element -file">
<h2 class="phpdocumentor-content__title">wpframework-core.php</h2>




<h5 class="phpdocumentor-tag-list__heading" id="tags">
Expand All @@ -106,9 +106,9 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag__name">wordpress-plugin</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">

<section class="phpdocumentor-description"><p>Plugin Name: App Framework Core
Plugin URI: https://github.com/devuri/wp-framework
Plugin URI: https://github.com/devuri/wpframework
Description: Web Application Framework provides <code class="prettyprint">wpframework_init</code> action and bootstrap file.
Version: 0.0.2
Requires at least: 5.3.0
Expand All @@ -133,9 +133,9 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">








</article>
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
<section class="phpdocumentor-search-results__dialog">
Expand Down
14 changes: 7 additions & 7 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
## Documentation

- [Resources](/wp-framework/resources/)
- [Premium Plugins](/wp-framework/premium-plugins)
- [Environment Variables](/wp-framework/env)
- [Release Notes](/wp-framework/changelog/)
- [Multi-Tenant Applications](/wp-framework/multi-tenant/)
- [Resources](/wpframework/resources/)
- [Premium Plugins](/wpframework/premium-plugins)
- [Environment Variables](/wpframework/env)
- [Release Notes](/wpframework/changelog/)
- [Multi-Tenant Applications](/wpframework/multi-tenant/)

## Support

Should you encounter any issues or have questions about the framework, don't hesitate to open an issue on our GitHub repository.

## Changelog
A complete listing of all notable changes are documented in [CHANGELOG](/wp-framework/changelog/)
A complete listing of all notable changes are documented in [CHANGELOG](/wpframework/changelog/)

## Report An Issue

If you have discovered an issue or bug with , you can [report the issues here](https://github.com/devuri/wp-framework/issues).
If you have discovered an issue or bug with , you can [report the issues here](https://github.com/devuri/wpframework/issues).
2 changes: 1 addition & 1 deletion docs/resources/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Installation

## Upgrade Guide
- [Upgrade](/wp-framework/upgrade/)
- [Upgrade](/wpframework/upgrade/)
24 changes: 12 additions & 12 deletions docs/upgrade-5.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
## Upgrade from wp-env-config to wp-framework version 5
## Upgrade from wp-env-config to wpframework version 5

To upgrade your project to use the latest `wp-framework` version 5 and integrate the new initialization process in your `bootstrap.php` file, follow this guide:
To upgrade your project to use the latest `wpframework` version 5 and integrate the new initialization process in your `bootstrap.php` file, follow this guide:

### 1. Update `composer.json`

Begin by updating your project's `composer.json` to require version 5 of `wp-framework`:
Begin by updating your project's `composer.json` to require version 5 of `wpframework`:

1. Open `composer.json` in your project's root directory.
2. Locate the `require` section and replace the entry for `devuri/wp-env-config` with `devuri/wp-framework`, specifying version 5:
2. Locate the `require` section and replace the entry for `devuri/wp-env-config` with `devuri/wpframework`, specifying version 5:

```json
"require": {
"devuri/wp-framework": "^5.0"
"devuri/wpframework": "^0.0.5"
}
```

3. Save your changes.

### 2. Update Project Dependencies

Run Composer to update your dependencies, which will remove the old `wp-env-config` package and install the specified version of `wp-framework`:
Run Composer to update your dependencies, which will remove the old `wp-env-config` package and install the specified version of `wpframework`:

```bash
composer update
Expand All @@ -35,18 +35,18 @@ rm mu-plugins/compose.php

### 4. Download the New MU-Plugin File

Download the new `wpframework.php` file from the `wp-framework` GitHub repository and place it in your `mu-plugins` directory. You can do this manually or use the following command:
Download the new `wpframework.php` file from the `wpframework` GitHub repository and place it in your `mu-plugins` directory. You can do this manually or use the following command:

Using `wget`:

```bash
wget https://raw.githubusercontent.com/devuri/wp-framework/master/src/inc/mu-plugin/wpframework.php -O mu-plugins/wpframework.php
wget https://raw.githubusercontent.com/devuri/wpframework/master/src/inc/mu-plugin/wpframework.php -O mu-plugins/wpframework.php
```

Or using `curl`:

```bash
curl -o mu-plugins/wpframework.php https://raw.githubusercontent.com/devuri/wp-framework/master/src/inc/mu-plugin/wpframework.php
curl -o mu-plugins/wpframework.php https://raw.githubusercontent.com/devuri/wpframework/master/src/inc/mu-plugin/wpframework.php
```

### 5. Update the `bootstrap.php` File
Expand All @@ -57,10 +57,10 @@ In your `bootstrap.php` file, update the application initialization line to use
$http_app = wpframework(__DIR__);
```

This line initializes your application with the base directory as its context, leveraging the `wp-framework`'s functionalities.
This line initializes your application with the base directory as its context, leveraging the `wpframework`'s functionalities.

### 6. Test Your Application

After making all the updates, thoroughly test your application to ensure everything functions correctly. Verify that the `wp-framework` is properly initialized and all configurations are loaded as expected.
After making all the updates, thoroughly test your application to ensure everything functions correctly. Verify that the `wpframework` is properly initialized and all configurations are loaded as expected.

By following these steps, your project will be successfully updated to use version 5 of the `wp-framework`, with the old `wp-env-config` removed and replaced by the new initialization process in the `bootstrap.php` file.
By following these steps, your project will be successfully updated to use version 5 of the `wpframework`, with the old `wp-env-config` removed and replaced by the new initialization process in the `bootstrap.php` file.
Loading

0 comments on commit f0350b9

Please sign in to comment.