Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Files and folders here will be not included when creating package
/tests export-ignore
/app export-ignore
/App export-ignore
/public export-ignore
/themes export-ignore
/webfiori/framework/db export-ignore
/Themes export-ignore
/Webfiori/Framework/Db export-ignore
/.github export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
Expand Down
4 changes: 2 additions & 2 deletions WebFiori/Framework/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public static function initFrameworkVersionInfo() {
*
* @since 2.1
*/
define('WF_VERSION', '3.0.0-Beta.29');
define('WF_VERSION', '3.0.0-Beta.30');
/**
* A constant that tells the type of framework version.
*
Expand All @@ -658,7 +658,7 @@ public static function initFrameworkVersionInfo() {
*
* @since 2.1
*/
define('WF_RELEASE_DATE', '2025-10-09');
define('WF_RELEASE_DATE', '2025-10-22');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "library",
"support": {
"issues": "https://github.com/webfiori/framework/issues",
"source": "https://github.com/webfior/framework"
"source": "https://github.com/webfiori/framework"
},
"authors": [
{
Expand Down
45 changes: 45 additions & 0 deletions update-version.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
/**
* Script to update WebFiori Framework version constants
* Usage: php update-version.php --version=3.0.0 --type=Stable
*/

$options = getopt('', ['version:', 'type:']);

if (!isset($options['version']) || !isset($options['type'])) {
echo "Usage: php update-version.php --version=VERSION --type=TYPE\n";
echo "Example: php update-version.php --version=3.0.0 --type=Stable\n";
exit(1);
}

$version = $options['version'];
$type = $options['type'];
$date = date('Y-m-d');

$appFile = __DIR__ . '/WebFiori/Framework/App.php';
$content = file_get_contents($appFile);

$content = preg_replace(
"/define\('WF_VERSION', '[^']*'\);/",
"define('WF_VERSION', '$version');",
$content
);

$content = preg_replace(
"/define\('WF_VERSION_TYPE', '[^']*'\);/",
"define('WF_VERSION_TYPE', '$type');",
$content
);

$content = preg_replace(
"/define\('WF_RELEASE_DATE', '[^']*'\);/",
"define('WF_RELEASE_DATE', '$date');",
$content
);

file_put_contents($appFile, $content);

echo "Updated version constants:\n";
echo "WF_VERSION: $version\n";
echo "WF_VERSION_TYPE: $type\n";
echo "WF_RELEASE_DATE: $date\n";
Loading