Skip to content

Commit

Permalink
v1.4.0. Added StringHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
bald-cat committed Oct 23, 2024
1 parent 679e612 commit 523f913
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"psr-4": {
"OrchidQuick\\Fields\\": "/src/Fields/",
"OrchidQuick\\Actions\\": "/src/Actions/",
"OrchidQuick\\Services\\": "/src/Services/"
"OrchidQuick\\Services\\": "/src/Services/",
"OrchidQuick\\Helpers\\": "/src/Helpers/"
}
},
"version": "1.3.0",
"version": "1.4.0",
"require": {
"php": "^8.0",
"orchid/platform": "^14.0"
Expand Down
12 changes: 12 additions & 0 deletions src/Helpers/StringHelper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace OrchidQuick\Helpers;

class StringHelper
{
public static function splitCamelCase($string): string
{
$converted = preg_replace('/(?<!^)([A-Z])/', ' $1', $string);
return ucwords($converted);
}
}
3 changes: 1 addition & 2 deletions src/Services/PlatformCrudRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

namespace OrchidQuick\Services;

use App\Helpers\StringHelper;
use App\Http\Controllers\CRUD\Page\PageDestroyController;
use OrchidQuick\Helpers\StringHelper;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
Expand Down

0 comments on commit 523f913

Please sign in to comment.