Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit #1

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 6 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,21 @@
# Rapidez :package_name_without_prefix
<!--delete-->
This repository can be used as template for a new Rapidez package.
# Rapidez demo-helper

- Click on "Use this template" on the top of this Github repo page
- Run `php ./configure.php`
This package contains some of the code used specifically for https://demo.rapidez.io

Credits to [`spatie/package-skeleton-laravel`](https://github.com/spatie/package-skeleton-laravel) for the inpiration for this template.

Keep in mind that if you contribute to this template; it should work for official and unofficial packages!
- `rapidez/something`
- `someone/rapidez-something`
<!--/delete-->
:package_description
It includes a middleware that sets specific configuration values based on the user's session.

## Installation

```
composer require :vendor_slug/:package_slug
```

## Configuration

You can publish the config with:
```
php artisan vendor:publish --tag=rapidez-:package_slug_without_prefix-config
composer config repositories.demo-helper vcs https://github.com/rapidez/demo-helper.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we're not going to push this to packagist?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion it wouldn't be necessary to push this to packagist as it would only be used for the demo

composer require rapidez/demo-helper
```

## Views

You can publish the views with:
```
php artisan vendor:publish --tag=rapidez-:package_slug_without_prefix-views
php artisan vendor:publish --tag=rapidez-demo-helper-views
```

## License
Expand Down
28 changes: 18 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
{
"name": ":vendor_slug/:package_slug",
"description": ":package_description",
"name": "rapidez/demo-helper",
"description": "This package contains some of the code used specifically for https://demo.rapidez.io",
"keywords": [
"rapidez",
":package_slug"
"demo-helper"
],
"homepage": "https://github.com/:vendor_slug/:package_slug",
"homepage": "https://demo.rapidez.io",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": ":author_name",
"email": "author@domain.com",
"name": "indy koning",
"email": "indy@justbetter.nl",
"role": "Developer"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^8.1|^8.2",
"rapidez/core": "^2.0|^3.0"
"php": "^8.1|^8.2|^8.3",
"rapidez/core": "^3.0"
},
"require-dev": {
"larastan/larastan": "^2.9",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^10.5.34|^11.3.5"
},
"autoload": {
"psr-4": {
"VendorName\\Skeleton\\": "src"
"Rapidez\\DemoHelper\\": "src"
}
},
"config": {
Expand All @@ -31,8 +36,11 @@
"extra": {
"laravel": {
"providers": [
"VendorName\\Skeleton\\SkeletonServiceProvider"
"Rapidez\\DemoHelper\\DemoHelperServiceProvider"
]
}
},
"scripts": {
"analyse": "phpstan --memory-limit=256M"
}
}
4 changes: 0 additions & 4 deletions config/rapidez/skeleton.php

This file was deleted.

217 changes: 0 additions & 217 deletions configure.php

This file was deleted.

35 changes: 0 additions & 35 deletions resources/js/components/Example.vue

This file was deleted.

15 changes: 0 additions & 15 deletions resources/js/package.js

This file was deleted.

Empty file.
7 changes: 7 additions & 0 deletions resources/views/top-bar.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@return(!request()->routeIs('checkout'))
<div class="w-screen bg-white my-2">
<div class="container py-2 text-center">
<x-rapidez::button.outline class="min-h-0" href="/checkout?checkout=default">@lang('default checkout')</x-rapidez::button.outline>
<x-rapidez::button.outline class="min-h-0" href="/checkout?checkout=onestep">@lang('onestep checkout')</x-rapidez::button.outline>
</div>
</div>
5 changes: 0 additions & 5 deletions routes/api.php

This file was deleted.

5 changes: 0 additions & 5 deletions routes/web.php

This file was deleted.

Loading