PHPackages                             raadaa-partners/raadaa-base - 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. raadaa-partners/raadaa-base

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

raadaa-partners/raadaa-base
===========================

Raadaa partners base package for common functions and operations across its applications and services

1.5.1(8mo ago)0149MITPHP

Since Nov 10Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/lubem5612/raadaa-base-package)[ Packagist](https://packagist.org/packages/raadaa-partners/raadaa-base)[ Docs](https://github.com/raadaa-partners/raadaa-base)[ RSS](/packages/raadaa-partners-raadaa-base/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (11)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/82ce4ef903c7e6a601998b527ec8665b72fe502b205b7bfe4305604665db2f73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261616461612d706172746e6572732f7261616461612d626173652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/raadaa-partners/raadaa-base)[![Total Downloads](https://camo.githubusercontent.com/05c15f2fdb5545f33347f258388c8d493f58e17ddfd6f0c37818b322f1b232d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7261616461612d706172746e6572732f7261616461612d626173652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/raadaa-partners/raadaa-base)[![GitHub Actions](https://github.com/raadaa-partners/raadaa-base/actions/workflows/main.yml/badge.svg)](https://github.com/raadaa-partners/raadaa-base/actions/workflows/main.yml/badge.svg)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require raadaa-partners/raadaa-base
```

Usage
-----

[](#usage)

### File Upload

[](#file-upload)

This package has a file uploader out of the box for these drivers: local, azure and amazon s3. Obtain an instance of the file upload helper to start using the methods. The file upload helper has three methods `uploadFile`, `uploadOrReplaceFile` and `deleteFile`.

```
$uploader = new UploadHelper();
```

#### Fresh File Upload

[](#fresh-file-upload)

This will upload a new file without deleting existing one associated with a column storing the path to the file. This should be used when creating a new resource that has image upload.

```
$response = $uploader->uploadFile($request->file('file_key'), 'folder_to_store_image');
if ($response['success']) {
     Blog::create([
        'title' => 'Welcome here',
        'image' => $response['upload_url'],
     ]);
}
```

#### Editing or Replacing an Uploaded File

[](#editing-or-replacing-an-uploaded-file)

This will first delete an existing file if it exists and then upload a new file associated with a column storing the path to the file in a specified model table. This should be used when updating an existing resource. The args are the UploadedFile instance, the folder to store the new image, the model which created the initial image and the column storing the path to the image to be replaced

```
$user = User::find($id);
$response = $uploader->uploadOrReplaceFile($request->file('file_key'), 'folder_to_store_image', $user, 'image');
if ($response['success']) {
     $user->image = $response['upload_url'];
     $user->save();
}
```

it is assumed here that the users table has a column called `image` where the file path to an uploaded file is stored.

#### Deleting Uploaded File

[](#deleting-uploaded-file)

This will delete an uploaded file using the file path stored in the associated table

```
$response = $uploader->deleteFile('path_to_uploaded_file_from_associated_table_column');
if ($response['success']) {
    // do something when image is deleted successfully
}
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lubem Tser](https://github.com/raadaa-partners)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance60

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Every ~73 days

Recently: every ~109 days

Total

10

Last Release

256d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1471148e8fed7c15e6f84e207a8bf4d2d99554b3a71a8d56feb467bba7c6e2ce?d=identicon)[lubem5612](/maintainers/lubem5612)

---

Top Contributors

[![lubem5612](https://avatars.githubusercontent.com/u/44066096?v=4)](https://github.com/lubem5612 "lubem5612 (38 commits)")

---

Tags

raadaa-baseraadaa-partners

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/raadaa-partners-raadaa-base/health.svg)

```
[![Health](https://phpackages.com/badges/raadaa-partners-raadaa-base/health.svg)](https://phpackages.com/packages/raadaa-partners-raadaa-base)
```

###  Alternatives

[helgesverre/extractor

AI-Powered Data Extraction for your Laravel application.

22128.0k](/packages/helgesverre-extractor)[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[tonysm/rich-text-laravel

Integrates Trix content with Laravel

46577.8k1](/packages/tonysm-rich-text-laravel)[mauricius/laravel-htmx

Laravel helper library for Htmx

364101.1k1](/packages/mauricius-laravel-htmx)[illuminate/reflection

The Illuminate Reflection package.

361.6M3](/packages/illuminate-reflection)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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