Skip to content

Commit 436c68f

Browse files
committed
Change namespace
1 parent 89fe470 commit 436c68f

24 files changed

+61
-46
lines changed

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: [aarondfrancis]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: ['https://aaronfrancis.com/backstage']

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Hammerstone
3+
Copyright (c) 2021 Aaron Francis
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ select * from contacts -- The full data that you want to show your
1919
```
2020

2121
> You might get an error trying to run the query above! Something like `This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery.`
22-
> In this package, we run them as [two _separate_ queries](https://github.com/hammerstonedev/fast-paginate/blob/154da286f8160a9e75e64e8025b0da682aa2ba23/src/BuilderMixin.php#L62-L79) to get around that!
22+
> In this package, we run them as [two _separate_ queries](https://github.com/aarondfrancis/fast-paginate/blob/154da286f8160a9e75e64e8025b0da682aa2ba23/src/BuilderMixin.php#L62-L79) to get around that!
2323
2424
The benefits can vary based on your dataset, but this method allows the database to examine as little data as possible to satisfy the user's intent.
2525

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
{
2-
"name": "hammerstone/fast-paginate",
2+
"name": "aaronfrancis/fast-paginate",
33
"description": "Fast paginate for Laravel",
44
"type": "library",
55
"license": "MIT",
66
"authors": [
77
{
88
"name": "Aaron Francis",
9-
"email": "aaron@hammerstone.dev"
9+
"email": "aaron@tryhardstudios.com"
1010
}
1111
],
1212
"require": {
13-
"php": "^7.4|^8.0",
14-
"illuminate/database": "^8.37|^9.0|^10.0|^11.0|^12.0"
13+
"php": "^8.1",
14+
"illuminate/database": "^10.0|^11.0|^12.0"
1515
},
1616
"require-dev": {
17-
"orchestra/testbench": "^6|^7|^8.0|^9.0|^10.0",
17+
"orchestra/testbench": "^8.0|^9.0|^10.0",
1818
"mockery/mockery": "^1.3.3",
19-
"phpunit/phpunit": ">=8.5.23|^9",
19+
"phpunit/phpunit": ">=8.5.23|^9|^10",
2020
"laravel/scout": "^9.4|^10.8"
2121
},
2222
"autoload": {
2323
"psr-4": {
24-
"Hammerstone\\FastPaginate\\": "src/"
24+
"AaronFrancis\\FastPaginate\\": "src/"
2525
}
2626
},
2727
"autoload-dev": {
2828
"psr-4": {
29-
"Hammerstone\\FastPaginate\\Tests\\": "tests/"
29+
"AaronFrancis\\FastPaginate\\Tests\\": "tests/"
3030
}
3131
},
3232
"extra": {
3333
"laravel": {
3434
"providers": [
35-
"Hammerstone\\FastPaginate\\FastPaginateProvider"
35+
"AaronFrancis\\FastPaginate\\FastPaginateProvider"
3636
]
3737
}
3838
}

src/BuilderMixin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Aaron Francis <[email protected]|https://twitter.com/aarondfrancis>
55
*/
66

7-
namespace Hammerstone\FastPaginate;
7+
namespace AaronFrancis\FastPaginate;
88

99
class BuilderMixin
1010
{

src/FastPaginate.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Aaron Francis <[email protected]|https://twitter.com/aarondfrancis>
55
*/
66

7-
namespace Hammerstone\FastPaginate;
7+
namespace AaronFrancis\FastPaginate;
88

99
use Closure;
1010
use Illuminate\Database\Query\Expression;
@@ -58,7 +58,7 @@ protected function paginate(string $paginationMethod, Closure $paginatorOutput)
5858
// Apparently some databases allow for offset 0 with no limit and some people
5959
// use it as a hack to get all records. Since that defeats the purpose of
6060
// fast pagination, we'll just return the normal paginator in that case.
61-
// https://github.com/hammerstonedev/fast-paginate/issues/39
61+
// https://github.com/aarondfrancis/fast-paginate/issues/39
6262
if ($perPage === -1) {
6363
return $this->{$paginationMethod}($perPage, $columns, $pageName, $page);
6464
}
@@ -125,7 +125,7 @@ public static function getInnerSelectColumns($builder)
125125
// Not everyone quotes their custom selects, which
126126
// is totally reasonable. We'll look for both
127127
// quoted and unquoted, as a kindness.
128-
// See https://github.com/hammerstonedev/fast-paginate/pull/57
128+
// See https://github.com/aarondfrancis/fast-paginate/pull/57
129129
$column = $column instanceof Expression ? $column->getValue($base->grammar) : $column;
130130

131131
return [

src/FastPaginateProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

33
/**
4-
* @author Aaron Francis <aaron@hammerstone.dev>
4+
* @author Aaron Francis <aaron@tryhardstudios.com>
55
*/
66

7-
namespace Hammerstone\FastPaginate;
7+
namespace AaronFrancis\FastPaginate;
88

99
use Illuminate\Database\Eloquent\Builder;
1010
use Illuminate\Database\Eloquent\Relations\Relation;

src/QueryIncompatibleWithFastPagination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
* @author Aaron Francis <[email protected]|https://twitter.com/aarondfrancis>
55
*/
66

7-
namespace Hammerstone\FastPaginate;
7+
namespace AaronFrancis\FastPaginate;
88

99
class QueryIncompatibleWithFastPagination extends \Exception {}

src/RelationMixin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Aaron Francis <[email protected]|https://twitter.com/aarondfrancis>
55
*/
66

7-
namespace Hammerstone\FastPaginate;
7+
namespace AaronFrancis\FastPaginate;
88

99
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
1010
use Illuminate\Database\Eloquent\Relations\HasManyThrough;

src/ScoutMixin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Aaron Francis <[email protected]|https://twitter.com/aarondfrancis>
55
*/
66

7-
namespace Hammerstone\FastPaginate;
7+
namespace AaronFrancis\FastPaginate;
88

99
class ScoutMixin
1010
{

0 commit comments

Comments
 (0)