Skip to content

Commit

Permalink
run configure
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed Apr 30, 2024
1 parent 392561a commit 188cf75
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 225 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/luminarix/:package_name/discussions/new?category=q-a
url: https://github.com/luminarix/laravel-jsonl-parser/discussions/new?category=q-a
about: Ask the community for help
- name: Request a feature
url: https://github.com/luminarix/:package_name/discussions/new?category=ideas
url: https://github.com/luminarix/laravel-jsonl-parser/discussions/new?category=ideas
about: Share ideas for new features
- name: Report a security issue
url: https://github.com/luminarix/:package_name/security/policy
url: https://github.com/luminarix/laravel-jsonl-parser/security/policy
about: Learn how to notify us for sensitive bugs
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Changelog

All notable changes to `:package_name` will be documented in this file.
All notable changes to `laravel-jsonl-parser` will be documented in this file.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# :package_description
# A JSON Lines parser for Laravel.

[![Latest Version on Packagist](https://img.shields.io/packagist/v/luminarix/:package_slug.svg?style=flat-square)](https://packagist.org/packages/luminarix/:package_slug)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/:package_slug/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/luminarix/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/:package_slug/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/luminarix/:package_slug/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/luminarix/:package_slug.svg?style=flat-square)](https://packagist.org/packages/luminarix/:package_slug)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/luminarix/laravel-jsonl-parser.svg?style=flat-square)](https://packagist.org/packages/luminarix/laravel-jsonl-parser)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/laravel-jsonl-parser/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/luminarix/laravel-jsonl-parser/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/laravel-jsonl-parser/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/luminarix/laravel-jsonl-parser/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/luminarix/laravel-jsonl-parser.svg?style=flat-square)](https://packagist.org/packages/luminarix/laravel-jsonl-parser)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Expand All @@ -12,33 +12,33 @@ This is where your description should go. Limit it to a paragraph or two. Consid
You can install the package via composer:

```bash
composer require luminarix/:package_slug
composer require luminarix/laravel-jsonl-parser
```

You can publish and run the migrations with:

```bash
php artisan vendor:publish --tag=":package_slug-migrations"
php artisan vendor:publish --tag="laravel-jsonl-parser-migrations"
php artisan migrate
```

You can publish the config file with:

```bash
php artisan vendor:publish --tag=":package_slug-config"
php artisan vendor:publish --tag="laravel-jsonl-parser-config"
```

Optionally, you can publish the views using

```bash
php artisan vendor:publish --tag=":package_slug-views"
php artisan vendor:publish --tag="laravel-jsonl-parser-views"
```

## Usage

```php
$variable = new Luminarix\Skeleton();
echo $variable->echoPhrase('Hello, Luminarix!');
$jSONL = new Luminarix\JSONL();
echo $jSONL->echoPhrase('Hello, Luminarix!');
```

## Testing
Expand Down
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "luminarix/:package_slug",
"description": ":package_description",
"name": "luminarix/laravel-jsonl-parser",
"description": "A JSON Lines parser for Laravel.",
"keywords": [
"Luminarix Labs",
"laravel",
":package_slug"
"laravel-jsonl-parser"
],
"homepage": "https://github.com/luminarix/:package_slug",
"homepage": "https://github.com/luminarix/laravel-jsonl-parser",
"license": "MIT",
"authors": [
{
Expand Down Expand Up @@ -34,13 +34,13 @@
},
"autoload": {
"psr-4": {
"Luminarix\\Skeleton\\": "src/",
"Luminarix\\Skeleton\\Database\\Factories\\": "database/factories/"
"Luminarix\\JSONL\\": "src/",
"Luminarix\\JSONL\\Database\\Factories\\": "database/factories/"
}
},
"autoload-dev": {
"psr-4": {
"Luminarix\\Skeleton\\Tests\\": "tests/"
"Luminarix\\JSONL\\Tests\\": "tests/"
}
},
"scripts": {
Expand All @@ -59,10 +59,10 @@
"extra": {
"laravel": {
"providers": [
"Luminarix\\Skeleton\\SkeletonServiceProvider"
"Luminarix\\JSONL\\JSONLServiceProvider"
],
"aliases": {
"Skeleton": "Luminarix\\Skeleton\\Facades\\Skeleton"
"JSONL": "Luminarix\\JSONL\\Facades\\JSONL"
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions config/jsonl-parser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

// config for Luminarix/JSONL
return [
];
5 changes: 0 additions & 5 deletions config/skeleton.php

This file was deleted.

159 changes: 0 additions & 159 deletions configure.php

This file was deleted.

2 changes: 1 addition & 1 deletion database/factories/ModelFactory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Luminarix\Skeleton\Database\Factories;
namespace Luminarix\JSONL\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ return new class extends Migration
{
public function up()
{
Schema::create('migration_table_name_table', function (Blueprint $table) {
Schema::create('laravel_jsonl_parser_table', function (Blueprint $table) {
$table->id();

// add fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Luminarix\Skeleton\Commands;
namespace Luminarix\JSONL\Commands;

use Illuminate\Console\Command;

class SkeletonCommand extends Command
class JSONLCommand extends Command
{
public $signature = 'skeleton';
public $signature = 'laravel-jsonl-parser';

public $description = 'My command';

Expand Down
16 changes: 16 additions & 0 deletions src/Facades/JSONL.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Luminarix\JSONL\Facades;

use Illuminate\Support\Facades\Facade;

/**
* @see \Luminarix\JSONL\JSONL
*/
class JSONL extends Facade
{
protected static function getFacadeAccessor(): string
{
return \Luminarix\JSONL\JSONL::class;
}
}
16 changes: 0 additions & 16 deletions src/Facades/Skeleton.php

This file was deleted.

7 changes: 7 additions & 0 deletions src/JSONL.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Luminarix\JSONL;

class JSONL
{
}
12 changes: 6 additions & 6 deletions src/SkeletonServiceProvider.php → src/JSONLServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Luminarix\Skeleton;
namespace Luminarix\JSONL;

use Luminarix\Skeleton\Commands\SkeletonCommand;
use Luminarix\JSONL\Commands\JSONLCommand;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;

class SkeletonServiceProvider extends PackageServiceProvider
class JSONLServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
Expand All @@ -16,10 +16,10 @@ public function configurePackage(Package $package): void
* More info: https://github.com/spatie/laravel-package-tools
*/
$package
->name('skeleton')
->name('laravel-jsonl-parser')
->hasConfigFile()
->hasViews()
->hasMigration('create_skeleton_table')
->hasCommand(SkeletonCommand::class);
->hasMigration('create_laravel-jsonl-parser_table')
->hasCommand(JSONLCommand::class);
}
}
Loading

0 comments on commit 188cf75

Please sign in to comment.