PHPackages                             larafor/bloodgroup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. larafor/bloodgroup

ActivePackage[Utility &amp; Helpers](/categories/utility)

larafor/bloodgroup
==================

Blood group management for Laravel apps

v1.0.0(1y ago)04MITPHP

Since Apr 11Pushed 1y agoCompare

[ Source](https://github.com/katushar/larafor-bloodgroup)[ Packagist](https://packagist.org/packages/larafor/bloodgroup)[ RSS](/packages/larafor-bloodgroup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Blood Group Management
==============================

[](#laravel-blood-group-management)

A Laravel package for managing blood groups in your application. This package provides an easy way to handle blood group data, including CRUD operations and relationships with other models.

Features
--------

[](#features)

- Manage blood groups with ease.
- Simple API for CRUD operations.
- Configurable blood group settings.
- Easy integration with Laravel applications.

Installation
------------

[](#installation)

You can install the package via Composer. Run the following command in your Laravel project directory:

```
composer require larafor/bloodgroup
```

Configuration
-------------

[](#configuration)

After installing the package, you can publish the configuration file using the following command:

```
php artisan vendor:publish --provider="Larafor\Bloodgroup\BloodGroupServiceProvider" --tag=bloodgroup-config
```

This will create a `config/bloodgroup.php` file in your application, where you can customize the settings.

Add id in outher table
----------------------

[](#add-id-in-outher-table)

```
php artisan bloodgroup:create-migration table

```

> expl: php artisan bloodgroup:create-migration users

Database Migration
------------------

[](#database-migration)

To create the necessary database table for blood groups, run the following command:

```
php artisan migrate
```

Seeding the Database
--------------------

[](#seeding-the-database)

You can seed the database with initial blood group data by running:

```
php artisan db:seed --class=BloodGroupSeeder
```

Usage
-----

[](#usage)

### Retrieving All Blood Groups

[](#retrieving-all-blood-groups)

You can retrieve all blood groups using the following code:

```
use Larafor\Bloodgroup\Models\BloodGroup;

$bloodGroups = BloodGroup::all();
```

### Creating a New Blood Group

[](#creating-a-new-blood-group)

To create a new blood group, use the following code:

```
BloodGroup::create(['name' => 'A+', 'is_active' => true]);
```

### Updating a Blood Group

[](#updating-a-blood-group)

To update an existing blood group, use the following code:

```
$bloodGroup = BloodGroup::find(1);
$bloodGroup->update(['is_active' => false]);
```

### Deleting a Blood Group

[](#deleting-a-blood-group)

To delete a blood group, use the following code:

```
$bloodGroup = BloodGroup::find(1);
$bloodGroup->delete();
```

Routes
------

[](#routes)

The package provides the following routes:

- `GET /bloodgroup`: Retrieve all blood groups.
- `GET /bloodgroup/{id}`: Retrieve a specific blood group by ID.
- `GET /bloodgroup/name/{name}`: Retrieve a blood group by name.
- `GET /bloodgroup/model/{model}`: Retrieve blood groups with related models.

License
-------

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.

Contributing
------------

[](#contributing)

If you would like to contribute to this package, please fork the repository and submit a pull request. Any contributions are welcome!

Author
------

[](#author)

- **KAWSAR AHMED Tushar** - [GitHub Profile](https://github.com/K-A-Tushar)

### উপসংহার

[](#উপসংহার)

এই `README.md` ফাইলটি আপনার প্যাকেজের জন্য একটি সম্পূর্ণ ডকুমেন্টেশন প্রদান করবে এবং ব্যবহারকারীদের জন্য এটি সহজে ব্যবহারযোগ্য করে তুলবে। আপনি যদি আরও কিছু জানতে চান বা সাহায্য প্রয়োজন হয়, তাহলে জানাবেন!

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance46

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

403d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5001221725edab71aa8d19a8990f7523d0b756af26db7be9898e7e4e2ded281a?d=identicon)[K-A-Tushar](/maintainers/K-A-Tushar)

---

Top Contributors

[![K-A-Tushar](https://avatars.githubusercontent.com/u/149403668?v=4)](https://github.com/K-A-Tushar "K-A-Tushar (14 commits)")

### Embed Badge

![Health badge](/badges/larafor-bloodgroup/health.svg)

```
[![Health](https://phpackages.com/badges/larafor-bloodgroup/health.svg)](https://phpackages.com/packages/larafor-bloodgroup)
```

###  Alternatives

[typo3/cms-rte-ckeditor

TYPO3 CMS RTE CKEditor - Integration of CKEditor as a Rich Text Editor for the TYPO3 backend.

198.7M157](/packages/typo3-cms-rte-ckeditor)[fof/user-bio

Add a user bio to user profiles

2196.5k9](/packages/fof-user-bio)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
