Skip to content

Commit

Permalink
Merge pull request #37 from infocyph/feature/new-beginning
Browse files Browse the repository at this point in the history
Updated namespace
  • Loading branch information
abmmhasan authored Apr 15, 2024
2 parents 8791904 + 77b2f34 commit 2810b8a
Show file tree
Hide file tree
Showing 50 changed files with 122 additions and 120 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: "composer" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
interval: "daily"
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "Security & Standards"

on:
schedule:
- cron: '0 0 * * 0'
push:
branches: [ '*' ]
pull_request:
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# InterMix

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

Expand All @@ -27,7 +27,7 @@ Language: PHP 8.2/+
## Installation

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

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Security Policy

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

## Supported Versions

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "abmmhasan/intermix",
"name": "infocyph/intermix",
"description": "A Collection of useful PHP class functions.",
"type": "library",
"license": "MIT",
Expand All @@ -14,12 +14,12 @@
"src/functions.php"
],
"psr-4": {
"AbmmHasan\\InterMix\\": "src/"
"Infocyph\\InterMix\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"AbmmHasan\\InterMix\\Tests\\": "tests/"
"Infocyph\\InterMix\\Tests\\": "tests/"
}
},
"require": {
Expand All @@ -28,10 +28,10 @@
"symfony/cache": "^7.0"
},
"require-dev": {
"captainhook/captainhook": "^5.19",
"laravel/pint": "^1.13",
"pestphp/pest": "^2.31",
"rector/rector": "^0.19 || ^1.0",
"captainhook/captainhook": "^5.23",
"laravel/pint": "^1.15",
"pestphp/pest": "^2.34",
"rector/rector": "^1.0",
"symfony/var-dumper": "^7.0"
},
"archive": {
Expand Down
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def get_version():

# -- Project information -----------------------------------------------------

project = 'abmmhasan/InterMix'
copyright = '2021-{year}, A. B. M. Mahmudul Hasan'.format(year = datetime.date.today().strftime('%Y'))
project = 'infocyph/InterMix'
copyright = '2021-{year}, infocyph'.format(year = datetime.date.today().strftime('%Y'))
author = 'A. B. M. Mahmudul Hasan'

version = get_version().strip()
Expand Down Expand Up @@ -90,14 +90,14 @@ def get_version():
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_title = "abmmhasan/InterMix %s Manual" % get_version()
html_title = "infocyph/InterMix %s Manual" % get_version()
html_show_sphinx = False

htmlhelp_basename = 'abmmhasan-intermix-doc'
htmlhelp_basename = 'infocyph-intermix-doc'

html_context = {
"display_github": False,
"github_user": "abmmhasan",
"github_user": "infocyph",
"github_repo": "InterMix",
"github_version": version,
"conf_py_path": "/docs/",
Expand Down
2 changes: 1 addition & 1 deletion docs/container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Creating the container is as easy as it can be,

.. code-block:: php
$container = new AbmmHasan\InterMix\container();
$container = new Infocyph\InterMix\container();
Then simply register or setOptions as your requirements:

Expand Down
4 changes: 2 additions & 2 deletions docs/di/attribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ some pre-requisite as given below:
For method attribute,

* ``methodAttributes`` parameter in ``setOptions()`` should be set to true
* On method or arguments, attributes should be marked using ``AbmmHasan\InterMix\DI\Attribute\Infuse()`` class
* On method or arguments, attributes should be marked using ``Infocyph\InterMix\DI\Attribute\Infuse()`` class

For property attribute

* ``propertyAttributes`` parameter in ``setOptions()`` should be set to true
* Attributes should be marked using ``AbmmHasan\InterMix\DI\Attribute\Infuse()`` class
* Attributes should be marked using ``Infocyph\InterMix\DI\Attribute\Infuse()`` class

Method attribute
----------------
Expand Down
6 changes: 3 additions & 3 deletions docs/di/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Simply, initialize using either of these lines,

.. code-block:: php
$container = AbmmHasan\InterMix\container(); // recommended
$container = AbmmHasan\InterMix\DI\Container::instance();
$container = new AbmmHasan\InterMix\DI\Container();
$container = Infocyph\InterMix\container(); // recommended
$container = Infocyph\InterMix\DI\Container::instance();
$container = new Infocyph\InterMix\DI\Container();
By default,

Expand Down
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.. _index:

=========================
abmmhasan/InterMix Manual
infocyph/InterMix Manual
=========================

For `abmmhasan/InterMix <https://github.com/abmmhasan/InterMix>`_ |version|. Updated on |today|.
For `infpcyph/InterMix <https://github.com/infpcyph/InterMix>`_ |version|. Updated on |today|.

Licensed under `MIT <https://github.com/abmmhasan/InterMix/blob/main/LICENSE>`_.
Licensed under `MIT <https://github.com/infpcyph/InterMix/blob/main/LICENSE>`_.

Contents
--------
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sphinx==4.5.0
Sphinx==5.0
sphinx-rtd-theme==1.2.0
sphinxcontrib-phpdomain==0.9.0
myst-parser==0.18.0
8 changes: 4 additions & 4 deletions docs/start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Getting Started
===============

abmmhasan/InterMix is a PHP library to provide with some class oriented tools that we need frequently.
infocyph/InterMix is a PHP library to provide with some class oriented tools that we need frequently.

What Is this?
##############
Expand All @@ -16,15 +16,15 @@ and balanced within Speed & Scalability!.
Requirements
############

abmmhasan/InterMix |version| requires the following:
infocyph/InterMix |version| requires the following:

* PHP 8.0/+

Installation
############

Use the following command to add abmmhasan/InterMix to your project using `Composer <https://getcomposer.org>`_:
Use the following command to add infocyph/InterMix to your project using `Composer <https://getcomposer.org>`_:

.. code-block:: bash
composer require abmmhasan/intermix
composer require infocyph/intermix
2 changes: 1 addition & 1 deletion src/DI/Attribute/Infuse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace AbmmHasan\InterMix\DI\Attribute;
namespace Infocyph\InterMix\DI\Attribute;

use Attribute;

Expand Down
12 changes: 6 additions & 6 deletions src/DI/Container.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace AbmmHasan\InterMix\DI;
namespace Infocyph\InterMix\DI;

use AbmmHasan\InterMix\DI\Invoker\GenericCall;
use AbmmHasan\InterMix\DI\Invoker\InjectedCall;
use AbmmHasan\InterMix\DI\Resolver\Repository;
use AbmmHasan\InterMix\Exceptions\ContainerException;
use AbmmHasan\InterMix\Exceptions\NotFoundException;
use Infocyph\InterMix\DI\Invoker\GenericCall;
use Infocyph\InterMix\DI\Invoker\InjectedCall;
use Infocyph\InterMix\DI\Resolver\Repository;
use Infocyph\InterMix\Exceptions\ContainerException;
use Infocyph\InterMix\Exceptions\NotFoundException;
use Closure;
use Exception;
use InvalidArgumentException;
Expand Down
4 changes: 2 additions & 2 deletions src/DI/Invoker/GenericCall.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace AbmmHasan\InterMix\DI\Invoker;
namespace Infocyph\InterMix\DI\Invoker;

use AbmmHasan\InterMix\DI\Resolver\Repository;
use Infocyph\InterMix\DI\Resolver\Repository;
use Closure;
use Exception;
use Error;
Expand Down
16 changes: 8 additions & 8 deletions src/DI/Invoker/InjectedCall.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace AbmmHasan\InterMix\DI\Invoker;
namespace Infocyph\InterMix\DI\Invoker;

use AbmmHasan\InterMix\DI\Resolver\ClassResolver;
use AbmmHasan\InterMix\DI\Resolver\DefinitionResolver;
use AbmmHasan\InterMix\DI\Resolver\ParameterResolver;
use AbmmHasan\InterMix\DI\Resolver\PropertyResolver;
use AbmmHasan\InterMix\DI\Resolver\Reflector;
use AbmmHasan\InterMix\DI\Resolver\Repository;
use AbmmHasan\InterMix\Exceptions\ContainerException;
use Infocyph\InterMix\DI\Resolver\ClassResolver;
use Infocyph\InterMix\DI\Resolver\DefinitionResolver;
use Infocyph\InterMix\DI\Resolver\ParameterResolver;
use Infocyph\InterMix\DI\Resolver\PropertyResolver;
use Infocyph\InterMix\DI\Resolver\Reflector;
use Infocyph\InterMix\DI\Resolver\Repository;
use Infocyph\InterMix\Exceptions\ContainerException;
use Closure;
use Psr\Cache\InvalidArgumentException;
use ReflectionException;
Expand Down
2 changes: 1 addition & 1 deletion src/DI/Reflection/ReflectionResource.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AbmmHasan\InterMix\DI\Reflection;
namespace Infocyph\InterMix\DI\Reflection;

use Closure;
use InvalidArgumentException;
Expand Down
6 changes: 3 additions & 3 deletions src/DI/Resolver/ClassResolver.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace AbmmHasan\InterMix\DI\Resolver;
namespace Infocyph\InterMix\DI\Resolver;

use AbmmHasan\InterMix\DI\Attribute\Infuse;
use AbmmHasan\InterMix\Exceptions\ContainerException;
use Infocyph\InterMix\DI\Attribute\Infuse;
use Infocyph\InterMix\Exceptions\ContainerException;
use Psr\Cache\InvalidArgumentException;
use ReflectionClass;
use ReflectionException;
Expand Down
4 changes: 2 additions & 2 deletions src/DI/Resolver/DefinitionResolver.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace AbmmHasan\InterMix\DI\Resolver;
namespace Infocyph\InterMix\DI\Resolver;

use AbmmHasan\InterMix\Exceptions\ContainerException;
use Infocyph\InterMix\Exceptions\ContainerException;
use Closure;
use Psr\Cache\InvalidArgumentException;
use ReflectionException;
Expand Down
6 changes: 3 additions & 3 deletions src/DI/Resolver/ParameterResolver.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace AbmmHasan\InterMix\DI\Resolver;
namespace Infocyph\InterMix\DI\Resolver;

use AbmmHasan\InterMix\DI\Attribute\Infuse;
use AbmmHasan\InterMix\Exceptions\ContainerException;
use Infocyph\InterMix\DI\Attribute\Infuse;
use Infocyph\InterMix\Exceptions\ContainerException;
use Psr\Cache\InvalidArgumentException;
use ReflectionAttribute;
use ReflectionClass;
Expand Down
6 changes: 3 additions & 3 deletions src/DI/Resolver/PropertyResolver.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace AbmmHasan\InterMix\DI\Resolver;
namespace Infocyph\InterMix\DI\Resolver;

use AbmmHasan\InterMix\DI\Attribute\Infuse;
use AbmmHasan\InterMix\Exceptions\ContainerException;
use Infocyph\InterMix\DI\Attribute\Infuse;
use Infocyph\InterMix\Exceptions\ContainerException;
use Psr\Cache\InvalidArgumentException;
use ReflectionClass;
use ReflectionException;
Expand Down
4 changes: 2 additions & 2 deletions src/DI/Resolver/Reflector.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace AbmmHasan\InterMix\DI\Resolver;
namespace Infocyph\InterMix\DI\Resolver;

use AbmmHasan\InterMix\DI\Reflection\ReflectionResource;
use Infocyph\InterMix\DI\Reflection\ReflectionResource;
use Closure;
use ReflectionClass;
use ReflectionEnum;
Expand Down
4 changes: 2 additions & 2 deletions src/DI/Resolver/Repository.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace AbmmHasan\InterMix\DI\Resolver;
namespace Infocyph\InterMix\DI\Resolver;

use AbmmHasan\InterMix\Exceptions\ContainerException;
use Infocyph\InterMix\Exceptions\ContainerException;
use Symfony\Contracts\Cache\CacheInterface;

class Repository
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/ContainerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace AbmmHasan\InterMix\Exceptions;
namespace Infocyph\InterMix\Exceptions;

use Exception;
use Psr\Container\ContainerExceptionInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace AbmmHasan\InterMix\Exceptions;
namespace Infocyph\InterMix\Exceptions;

use Exception;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Fence/Common.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AbmmHasan\InterMix\Fence;
namespace Infocyph\InterMix\Fence;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Fence/Limit.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AbmmHasan\InterMix\Fence;
namespace Infocyph\InterMix\Fence;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Fence/Multi.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AbmmHasan\InterMix\Fence;
namespace Infocyph\InterMix\Fence;

use Exception;

Expand Down
Loading

0 comments on commit 2810b8a

Please sign in to comment.