-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fcd620
commit df7a4ae
Showing
16 changed files
with
327 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Path-based git attributes | ||
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | ||
|
||
# Ignore all test and documentation with "export-ignore". | ||
/.github export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/art export-ignore | ||
/docs export-ignore | ||
/tests export-ignore | ||
/workbench export-ignore | ||
/.editorconfig export-ignore | ||
/.php_cs.dist.php export-ignore | ||
/psalm.xml export-ignore | ||
/psalm.xml.dist export-ignore | ||
/testbench.yaml export-ignore | ||
/UPGRADING.md export-ignore | ||
/phpstan.neon.dist export-ignore | ||
/phpstan-baseline.neon export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.idea | ||
.phpunit.cache | ||
build | ||
composer.lock | ||
coverage | ||
docs | ||
phpunit.xml | ||
phpstan.neon | ||
testbench.yaml | ||
vendor | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Contributing to Docsidian | ||
|
||
Contributions are welcome from premium members of the [Artisan Build Community](https://artisan.community) | ||
|
||
All others are welcome to make suggestions and report bugs in the free packages channel in the community. | ||
|
||
Please follow the community contribution guidelines. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Artisan Build <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Till | ||
|
||
A companion to Laravel Cashier that provides Verbs-enabled webhook controllers and some utilities for setting up products and plans | ||
|
||
> [!WARNING] | ||
> This package is currently under active development, and we have not yet released a major version. Once a 0.* version | ||
> has been tagged, we strongly recommend locking your application to a specific working version because we might make | ||
> breaking changes even in patch releases until we've tagged 1.0. | ||
## Installation | ||
|
||
`composer require artisan-build/till` | ||
|
||
## Configuration | ||
|
||
## Usage | ||
|
||
## Memberware | ||
|
||
This package is part of our internal toolkit and is optimized for our own purposes. We do not accept issues or PRs | ||
in this repository. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"name": "artisan-build/till", | ||
"description": "A companion to Laravel Cashier that provides Verbs-enabled webhook controllers and some utilities for setting up products and plans ", | ||
"type": "library", | ||
"license": "MIT", | ||
"require": { | ||
"illuminate/support": "^11.36" | ||
}, | ||
"require-dev": { | ||
"larastan/larastan": "^v3.0.2", | ||
"orchestra/testbench": "^v9.9.0", | ||
"pestphp/pest": "^v3.7.1", | ||
"laravel/pint": "^1.19.0", | ||
"phpstan/phpstan": "^2.1.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"ArtisanBuild\\Till\\": "src/", | ||
"ArtisanBuild\\Till\\Tests\\": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "stable", | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"ArtisanBuild\\Till\\Providers\\TillServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"pestphp/pest-plugin": true | ||
} | ||
}, | ||
"scripts": { | ||
"post-autoload-dump": "@composer run prepare", | ||
"clear": "@php vendor/bin/testbench package:purge-bench --ansi", | ||
"prepare": "@php vendor/bin/testbench package:discover --ansi", | ||
"build": [ | ||
"@composer run prepare", | ||
"@php vendor/bin/testbench workbench:build --ansi" | ||
], | ||
"start": [ | ||
"Composer\\Config::disableProcessTimeout", | ||
"@composer run build", | ||
"@php vendor/bin/testbench serve" | ||
], | ||
"test": "vendor/bin/pest", | ||
"test-coverage": "vendor/bin/pest --coverage", | ||
"lint": "vendor/bin/pint", | ||
"stan": "vendor/bin/phpstan analyse --memory-limit=-1", | ||
"ready": [ | ||
"@composer lint", | ||
"@composer stan", | ||
"@composer test" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
return []; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: 5 | ||
paths: | ||
- src | ||
- config | ||
tmpDir: build/phpstan | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace ArtisanBuild\Till\Providers; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class TillServiceProvider extends ServiceProvider | ||
{ | ||
#[\Override] | ||
public function register(): void | ||
{ | ||
$this->mergeConfigFrom(__DIR__.'/../../config/till.php', 'till'); | ||
} | ||
|
||
public function boot(): void | ||
{ | ||
$this->publishes([ | ||
__DIR__.'/../../config/till.php' => config_path('till.php'), | ||
], 'till'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Getting Tests Working if You've Forked This Package | ||
|
||
We do all of our package development within a monorepo that provides the Laravel framework for us to test against. | ||
So we don't actually use Orchestra Testbench ourselves. However, if you've forked this package, you'll need to tweak | ||
a couple of things in this directory in order for the test suite to run. | ||
|
||
## Renaming Files | ||
|
||
Rename Pest.php.forked to Pest.php | ||
Rename TestCase.php.forked to TestCase.php | ||
|
||
## Run The Test Suite | ||
|
||
At this point, you should be able to run the test suite with `composer test`. Please let us know if that doesn't work | ||
for you so we can augment this documentation to include anything we may have missed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
use ArtisanBuild\Skeleton\Tests\TestCase; | ||
|
||
uses(TestCase::class)->in(__DIR__); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace ArtisanBuild\Skeleton\Tests; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Orchestra\Testbench\TestCase as Orchestra; | ||
use VendorName\Skeleton\SkeletonServiceProvider; | ||
|
||
/** | ||
* Remove the .forked from the end of this filename to enable stand-alone testing on this package when forked. | ||
*/ | ||
class TestCase extends Orchestra | ||
{ | ||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
Factory::guessFactoryNamesUsing( | ||
fn (string $modelName) => 'VendorName\\Skeleton\\Database\\Factories\\'.class_basename($modelName).'Factory' | ||
); | ||
} | ||
|
||
protected function getPackageProviders($app) | ||
{ | ||
return [ | ||
SkeletonServiceProvider::class, | ||
]; | ||
} | ||
|
||
public function getEnvironmentSetUp($app) | ||
{ | ||
config()->set('database.default', 'testing'); | ||
|
||
/* | ||
foreach (\Illuminate\Support\Facades\File::allFiles(__DIR__ . '/database/migrations') as $migration) { | ||
(include $migration->getRealPath())->up(); | ||
} | ||
*/ | ||
} | ||
} |