Skip to content

Commit

Permalink
Start project
Browse files Browse the repository at this point in the history
  • Loading branch information
madpilot78 committed Jul 9, 2024
0 parents commit 3d4966a
Show file tree
Hide file tree
Showing 12 changed files with 2,519 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---

version: 2
updates:
- package-ecosystem: composer
directory: /
schedule:
interval: daily
time: '06:00'
timezone: Europe/Rome
allow:
- dependency-type: all
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
time: '05:00'
timezone: Europe/Rome
14 changes: 14 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---

name: auto-merge

on: [ pull_request_target ]

jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.AUTOMERGE_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---

name: markdownlint

on:
- push
- pull_request
- workflow_dispatch

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Lint README (markdown)
uses: avto-dev/markdown-lint@v1
with:
config: ./.markdownlint.yml
args: ./README.md
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---

name: tests

on:
- push
- pull_request
- workflow_dispatch

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer
coverage: xdebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run composer
run: composer install --no-progress
- name: Run phpunit
run: vendor/bin/phpunit --coverage-clover ./coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.php-cs-fixer.cache
.php-cs-fixer.php
.phpunit.result.cache
/vendor/
11 changes: 11 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---

default: true
no-hard-tabs:
code_blocks: false
line-length:
code_blocks: false
no-bare-urls: false
fenced-code-language: false
no-duplicate-heading:
siblings_only: true
20 changes: 20 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

require_once __DIR__ . '/vendor/autoload.php';

use madpilot78\PhpCsFixerConfig\Config;

$config = new Config();
$config
->setRiskyAllowed(true)
->setRules([
'declare_strict_types' => true,
])
->getFinder()
->ignoreVCSIgnored(true)
->notPath('vendor')
->in(__DIR__);

return $config;
28 changes: 28 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
BSD 3-Clause License

Copyright (c) 2024, Guido Falsi <[email protected]>

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Laravel FreeBoxPHP package

Package to use FreeBoxPHP library to access you FreeBox/IliadBox from
Laravel apps.

## Install

Using composer:

```sh
composer require madpilot78/Laravel-FreeBoxPHP
```
53 changes: 53 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "madpilot78/laravel-freebox-php",
"description": "Laravel FreeBoxPHP package",
"type": "library",
"license": "BSD-3-Clause",
"version": "0.0.1",
"keywords": [
"api",
"freebox",
"laravel",
"php"
],
"authors": [
{
"name": "Guido Falsi",
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
"php": "^8.2",
"madpilot78/freebox-php": "^0.0.1",
"nunomaduro/termwind": "^2.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.42",
"friendsofphp/php-cs-fixer": "^3.54",
"madpilot78/php-cs-fixer-config": "^1.0",
"phpunit/phpunit": "^11"
},
"autoload": {
"psr-4": {
"madpilot78\\Laravel-FreeBoxPHP\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"require": {},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
},
"scripts": {
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix"
}
}
Loading

0 comments on commit 3d4966a

Please sign in to comment.