Skip to content

Commit

Permalink
first commit 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Aug 20, 2024
0 parents commit c397d3d
Show file tree
Hide file tree
Showing 27 changed files with 296 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [3x1io]
14 changes: 14 additions & 0 deletions 3x1io-tomato-payments.md
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 added CHANGELOG.md
Empty file.
21 changes: 21 additions & 0 deletions LICENSE.md
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.
70 changes: 70 additions & 0 deletions README.md
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 added SECURITY.md
Empty file.
Binary file added arts/3x1io-tomato-payments.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions composer.json
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 added config/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions config/filament-payments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
//You config go here...
];
Empty file added database/migrations/.gitkeep
Empty file.
Empty file added resources/js/.gitkeep
Empty file.
Empty file added resources/lang/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions resources/lang/ar/messages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [

];
5 changes: 5 additions & 0 deletions resources/lang/en/messages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [

];
Empty file added resources/views/.gitkeep
Empty file.
3 changes: 3 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php


Empty file added src/Console/.gitkeep
Empty file.
47 changes: 47 additions & 0 deletions src/Console/FilamentPaymentsInstall.php
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.');
}
}
30 changes: 30 additions & 0 deletions src/FilamentPaymentsPlugin.php
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();
}
}
57 changes: 57 additions & 0 deletions src/FilamentPaymentsServiceProvider.php
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 added src/Http/Controllers/.gitkeep
Empty file.
Empty file added src/Http/Middleware/.gitkeep
Empty file.
Empty file added src/Http/Requests/.gitkeep
Empty file.
Empty file added src/Models/.gitkeep
Empty file.
Empty file added tests/Feature/.gitkeep
Empty file.
Empty file added tests/Unit/.gitkeep
Empty file.

0 comments on commit c397d3d

Please sign in to comment.