Skip to content

Commit

Permalink
Merge pull request #45 from infocyph/feature/improvements-24
Browse files Browse the repository at this point in the history
line ending
  • Loading branch information
abmmhasan authored May 25, 2024
2 parents 3c58bb2 + 1b97055 commit 9cd7830
Show file tree
Hide file tree
Showing 49 changed files with 1,977 additions and 1,977 deletions.
16 changes: 8 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
tests export-ignore
docs export-ignore
.github export-ignore
.readthedocs.yaml export-ignore
captainhook.json export-ignore
phpunit.xml export-ignore
pint.json export-ignore
rector.php export-ignore
tests export-ignore
docs export-ignore
.github export-ignore
.readthedocs.yaml export-ignore
captainhook.json export-ignore
phpunit.xml export-ignore
pint.json export-ignore
rector.php export-ignore
10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "composer" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
version: 2
updates:
- package-ecosystem: "composer" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
88 changes: 44 additions & 44 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: "Security & Standards"

on:
schedule:
- cron: '0 0 * * 0'
push:
branches: [ '*' ]
pull_request:
branches: [ "main", "master", "develop" ]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.2', '8.3' ]
dependency-version: [ prefer-lowest, prefer-stable ]

name: PHP ${{ matrix.php-versions }} - ${{ matrix.operating-system }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
coverage: xdebug

- name: Check PHP Version
run: php -v

- name: Validate Composer
run: composer validate --strict

- name: Install dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Package Audit
run: composer audit

- name: Test
name: "Security & Standards"

on:
schedule:
- cron: '0 0 * * 0'
push:
branches: [ '*' ]
pull_request:
branches: [ "main", "master", "develop" ]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.2', '8.3' ]
dependency-version: [ prefer-lowest, prefer-stable ]

name: PHP ${{ matrix.php-versions }} - ${{ matrix.operating-system }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
coverage: xdebug

- name: Check PHP Version
run: php -v

- name: Validate Composer
run: composer validate --strict

- name: Install dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Package Audit
run: composer audit

- name: Test
run: composer tests
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
vendor
example
.idea
example.php
composer.lock
git-story_media
vendor
example
.idea
example.php
composer.lock
git-story_media
68 changes: 34 additions & 34 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2021 A. B. M. Mahmudul Hasan

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.
MIT License
Copyright (c) 2021 A. B. M. Mahmudul Hasan
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.
80 changes: 40 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
# InterMix

[![Security & Standards](https://github.com/infocyph/InterMix/actions/workflows/build.yml/badge.svg)](https://github.com/infocyph/InterMix/actions/workflows/build.yml)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/357a4bc6311c4dc892b67b89970fb096)](https://app.codacy.com/gh/infocyph/InterMix/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Documentation Status](https://readthedocs.org/projects/intermix/badge/?version=latest)](https://intermix.readthedocs.io)
![Packagist Downloads (custom server)](https://img.shields.io/packagist/dt/infocyph/intermix?color=green&link=https%3A%2F%2Fpackagist.org%2Fpackages%2Finfocyph%2Fintermix)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
![Packagist Version](https://img.shields.io/packagist/v/infocyph/intermix)
![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/infocyph/intermix/php)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/infocyph/intermix)

This library intended to provide you with some class oriented tools that we (may) need frequently.

* Dependency Injector (Container) (PSR 11 compliant)
* Class initialization barrier (Fence)
* Class Macro (MacroMix)
* Memoize

## Prerequisites

Language: PHP 8.2/+

| Library Version | PHP Version |
|-----------------|-----------------|
| 2.x.x | 8.2.x or Higher |
| 1.x.x | 8.x.x |

## Installation

```bash
composer require infocyph/intermix
```

## Documentation

Check the [documentation](https://intermix.readthedocs.io) for details!

## Support

Bug/issue/help? Just create an issue!
# InterMix

[![Security & Standards](https://github.com/infocyph/InterMix/actions/workflows/build.yml/badge.svg)](https://github.com/infocyph/InterMix/actions/workflows/build.yml)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/357a4bc6311c4dc892b67b89970fb096)](https://app.codacy.com/gh/infocyph/InterMix/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Documentation Status](https://readthedocs.org/projects/intermix/badge/?version=latest)](https://intermix.readthedocs.io)
![Packagist Downloads (custom server)](https://img.shields.io/packagist/dt/infocyph/intermix?color=green&link=https%3A%2F%2Fpackagist.org%2Fpackages%2Finfocyph%2Fintermix)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
![Packagist Version](https://img.shields.io/packagist/v/infocyph/intermix)
![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/infocyph/intermix/php)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/infocyph/intermix)

This library intended to provide you with some class oriented tools that we (may) need frequently.

* Dependency Injector (Container) (PSR 11 compliant)
* Class initialization barrier (Fence)
* Class Macro (MacroMix)
* Memoize

## Prerequisites

Language: PHP 8.2/+

| Library Version | PHP Version |
|-----------------|-----------------|
| 2.x.x | 8.2.x or Higher |
| 1.x.x | 8.x.x |

## Installation

```bash
composer require infocyph/intermix
```

## Documentation

Check the [documentation](https://intermix.readthedocs.io) for details!

## Support

Bug/issue/help? Just create an issue!
32 changes: 16 additions & 16 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Security Policy

![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/infocyph/InterMix)

## Supported Versions

| Version | Supported |
|---------| ------------------ |
| > 8.1.x | :white_check_mark: |
| 8.1.x | :white_check_mark: |
| 8.0.x | :white_check_mark: |
| < 8.0 | :x: |

## Reporting a Vulnerability

Submit issues in issues section to report any vulnerability!
# Security Policy

![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/infocyph/InterMix)

## Supported Versions

| Version | Supported |
|---------| ------------------ |
| > 8.1.x | :white_check_mark: |
| 8.1.x | :white_check_mark: |
| 8.0.x | :white_check_mark: |
| < 8.0 | :x: |

## Reporting a Vulnerability

Submit issues in issues section to report any vulnerability!
Loading

0 comments on commit 9cd7830

Please sign in to comment.