-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
0 parents
commit c397d3d
Showing
27 changed files
with
296 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [3x1io] |
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,14 @@ | ||
--- | ||
name: Payment Manager | ||
slug: 3x1io-tomato-payments | ||
author_slug: 3x1io | ||
categories: [developer-tool] | ||
description: Manage your payments inside FilamentPHP app with multi payment gateway integration | ||
discord_url: | ||
docs_url: https://raw.githubusercontent.com/tomatophp/filament-payments/master/README.md | ||
github_repository: tomatophp/filament-payments | ||
has_dark_theme: true | ||
has_translations: true | ||
versions: [3] | ||
publish_date: 2024-08-21 | ||
--- |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) | ||
|
||
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,70 @@ | ||
![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-payments/master/arts/3x1io-tomato-payments.jpg) | ||
|
||
# Filament Payment Manager | ||
|
||
[![Latest Stable Version](https://poser.pugx.org/tomatophp/filament-payments/version.svg)](https://packagist.org/packages/tomatophp/filament-payments) | ||
[![License](https://poser.pugx.org/tomatophp/filament-payments/license.svg)](https://packagist.org/packages/tomatophp/filament-payments) | ||
[![Downloads](https://poser.pugx.org/tomatophp/filament-payments/d/total.svg)](https://packagist.org/packages/tomatophp/filament-payments) | ||
|
||
Manage your payments inside FilamentPHP app with multi payment gateway integration | ||
|
||
## Installation | ||
|
||
```bash | ||
composer require tomatophp/filament-payments | ||
``` | ||
after install your package please run this command | ||
|
||
```bash | ||
php artisan filament-payments:install | ||
``` | ||
|
||
## Publish Assets | ||
|
||
you can publish config file by use this command | ||
|
||
```bash | ||
php artisan vendor:publish --tag="filament-payments-config" | ||
``` | ||
|
||
you can publish views file by use this command | ||
|
||
```bash | ||
php artisan vendor:publish --tag="filament-payments-views" | ||
``` | ||
|
||
you can publish languages file by use this command | ||
|
||
```bash | ||
php artisan vendor:publish --tag="filament-payments-lang" | ||
``` | ||
|
||
you can publish migrations file by use this command | ||
|
||
```bash | ||
php artisan vendor:publish --tag="filament-payments-migrations" | ||
``` | ||
|
||
## Support | ||
|
||
you can join our discord server to get support [TomatoPHP](https://discord.gg/Xqmt35Uh) | ||
|
||
## Docs | ||
|
||
you can check docs of this package on [Docs](https://docs.tomatophp.com/plugins/laravel-package-generator) | ||
|
||
## Changelog | ||
|
||
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. | ||
|
||
## Security | ||
|
||
Please see [SECURITY](SECURITY.md) for more information about security. | ||
|
||
## Credits | ||
|
||
- [Tomatophp](mailto:info@3x1.io) | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,38 @@ | ||
{ | ||
"name": "tomatophp/filament-payments", | ||
"type": "library", | ||
"description": "Manage your payments inside FilamentPHP app with multi payment gateway integration", | ||
"keywords": [ | ||
"php", | ||
"laravel", | ||
"template" | ||
], | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-4": { | ||
"TomatoPHP\\FilamentPayments\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Tests\\": "tests/" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"TomatoPHP\\FilamentPayments\\FilamentPaymentsServiceProvider" | ||
] | ||
} | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Fady Mondy", | ||
"email": "info@3x1.io" | ||
} | ||
], | ||
"require": { | ||
"php": "^8.1", | ||
"tomatophp/console-helpers": "^1.0" | ||
} | ||
} |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
//You config go here... | ||
]; |
Empty file.
Empty file.
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
]; |
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 | ||
|
||
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,3 @@ | ||
<?php | ||
|
||
|
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,47 @@ | ||
<?php | ||
|
||
namespace TomatoPHP\FilamentPayments\Console; | ||
|
||
use Illuminate\Console\Command; | ||
use TomatoPHP\ConsoleHelpers\Traits\RunCommand; | ||
|
||
class FilamentPaymentsInstall extends Command | ||
{ | ||
use RunCommand; | ||
|
||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'filament-payments:install'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'install package and publish assets'; | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
} | ||
|
||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return mixed | ||
*/ | ||
public function handle() | ||
{ | ||
$this->info('Publish Vendor Assets'); | ||
$this->callSilent('optimize:clear'); | ||
$this->yarnCommand(['install']); | ||
$this->yarnCommand(['build']); | ||
$this->artisanCommand(["migrate"]); | ||
$this->artisanCommand(["optimize:clear"]); | ||
$this->info('filamentPayments installed successfully.'); | ||
} | ||
} |
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,30 @@ | ||
<?php | ||
|
||
namespace TomatoPHP\FilamentPayments; | ||
|
||
use Filament\Contracts\Plugin; | ||
use Filament\Panel; | ||
|
||
|
||
class FilamentPaymentsPlugin implements Plugin | ||
{ | ||
public function getId(): string | ||
{ | ||
return 'filament-payments'; | ||
} | ||
|
||
public function register(Panel $panel): void | ||
{ | ||
// | ||
} | ||
|
||
public function boot(Panel $panel): void | ||
{ | ||
// | ||
} | ||
|
||
public static function make(): static | ||
{ | ||
return new static(); | ||
} | ||
} |
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,57 @@ | ||
<?php | ||
|
||
namespace TomatoPHP\FilamentPayments; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
|
||
class FilamentPaymentsServiceProvider extends ServiceProvider | ||
{ | ||
public function register(): void | ||
{ | ||
//Register generate command | ||
$this->commands([ | ||
\TomatoPHP\FilamentPayments\Console\FilamentPaymentsInstall::class, | ||
]); | ||
|
||
//Register Config file | ||
$this->mergeConfigFrom(__DIR__.'/../config/filament-payments.php', 'filament-payments'); | ||
|
||
//Publish Config | ||
$this->publishes([ | ||
__DIR__.'/../config/filament-payments.php' => config_path('filament-payments.php'), | ||
], 'filament-payments-config'); | ||
|
||
//Register Migrations | ||
$this->loadMigrationsFrom(__DIR__.'/../database/migrations'); | ||
|
||
//Publish Migrations | ||
$this->publishes([ | ||
__DIR__.'/../database/migrations' => database_path('migrations'), | ||
], 'filament-payments-migrations'); | ||
//Register views | ||
$this->loadViewsFrom(__DIR__.'/../resources/views', 'filament-payments'); | ||
|
||
//Publish Views | ||
$this->publishes([ | ||
__DIR__.'/../resources/views' => resource_path('views/vendor/filament-payments'), | ||
], 'filament-payments-views'); | ||
|
||
//Register Langs | ||
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'filament-payments'); | ||
|
||
//Publish Lang | ||
$this->publishes([ | ||
__DIR__.'/../resources/lang' => base_path('lang/vendor/filament-payments'), | ||
], 'filament-payments-lang'); | ||
|
||
//Register Routes | ||
$this->loadRoutesFrom(__DIR__.'/../routes/web.php'); | ||
|
||
} | ||
|
||
public function boot(): void | ||
{ | ||
//you boot methods here | ||
} | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.