PHPackages                             ikepu-tp/laravel-file-library - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. ikepu-tp/laravel-file-library

ActiveLibrary[File &amp; Storage](/categories/file-storage)

ikepu-tp/laravel-file-library
=============================

v1.3.0(2y ago)014[1 issues](https://github.com/ikepu-tp/laravel-file-library/issues)MITPHPPHP ^8.2CI failing

Since Feb 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ikepu-tp/laravel-file-library)[ Packagist](https://packagist.org/packages/ikepu-tp/laravel-file-library)[ Docs](https://ikepu-tp.com)[ GitHub Sponsors](https://github.com/ikepu-tp)[ RSS](/packages/ikepu-tp-laravel-file-library/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Laravel File Library
====================

[](#laravel-file-library)

This is a file management library for Laravel.

How to use
----------

[](#how-to-use)

### Install

[](#install)

```
composer require ikepu-tp/larave-file-library
```

### Publish configuration etc

[](#publish-configuration-etc)

```
php artisan vendor:publish --provider="ikepu_tp\FileLibrary\FileLibraryServiceProvider"
```

### Routing

[](#routing)

HTTP MethodURIActionRoute NameDescriptionGET/file/libindexfile-library.indexDisplay a list of files in the file library.GET/file/lib/createcreatefile-library.createDisplay a form for uploading a new file.POST/file/libstorefile-library.storeUpload a file.GET/file/lib/{fileId}showfile-library.showDisplay details of a specific file.GET/file/lib/{fileId}/editeditfile-library.editDisplay a form for editing a specific file.PUT/file/lib/{fileId}updatefile-library.updateUpdate a specific file.DELETE/file/lib/{fileId}destroyfile-library.destroyDelete a specific file.Note

`{fileId}` means uuid.

#### Upload File

[](#upload-file)

##### Default Route

[](#default-route)

```
POST http://your-project.com/file/lib
```

KeyTypeAccepted ValuesRequiredfilesArray&lt;int, File&gt;YnamesArray&lt;int, string&gt;max length: 250Y##### Original Route

[](#original-route)

```
class FileController extends Controller
{
    public function store(Request $request)
    {
        $guard = config("file-library.guard");
        $files = \ikepu_tp\FileLibrary\app\Services\FileLibraryService::upload(
            $guard,
            $request->file("files", []),
            $request->input("names", [])
        );

        return back()->with("status", "File uploaded.");
    }
}

```

#### Edit File

[](#edit-file)

```
PUT http://your-project.com/file/lib/{fileId}
```

KeyTypeAccepted ValuesRequirednamestringmax length: 250YAPI Documentation
-----------------

[](#api-documentation)

### FileLibraryController

[](#filelibrarycontroller)

#### FileLibraryResource

[](#filelibraryresource)

```
{
  "fileId": "string",
  "name": "string",
  "url": "string",
  "mime_type": "string",
  "created_at": "string",
  "updated_at": "string"
}
```

#### index

[](#index)

Display a list of files in the file library.

```
GET http://your-project.com/file/lib
```

##### index Sample

[](#index-sample)

```
{
    "status":{
        "result":true,
        "code":200,
    },
    "payloads":{
        "meta": {
            "currentPage": 1,
            "lastPage": 1,
            "length": 1,
            "getLength": 0,
            "per":1,
        },
        "items":[
                {
                    "fileId": "uuid",
                    "name": "file name",
                    "url": "http://your-project.com/file/lib/uuid",
                    "mime_type": "application/json",
                    "created_at": "2024-01-01T00:00:00Z",
                    "updated_at": "2024-01-01T00:00:00Z"
                }
        ]
    }
}

```

#### store

[](#store)

Upload a file.

```
POST http://your-project.com/file/lib
```

##### store Sample

[](#store-sample)

```
{
    "files": [
        "FILE BINARY",
    ],
    "names":[
        "file name",
    ]
}

```

```
{
    "status":{
        "result":true,
        "code":201,
    },
    "payloads": [
        {
            "fileId": "uuid",
            "name": "file name",
            "url": "http://your-project.com/file/lib/uuid",
            "mime_type": "application/json",
            "created_at": "2024-01-01T00:00:00Z",
            "updated_at": "2024-01-01T00:00:00Z"
        }
    ]
}

```

#### show

[](#show)

Display details of a specific file.

```
GET http://your-project.com/file/lib/{fileId}
```

#### update

[](#update)

Update a specific file.

```
PUT http://your-project.com/file/lib/{fileId}
```

#### destroy

[](#destroy)

Delete a specific file.

```
DELETE http://your-project.com/file/lib/{fileId}
```

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

[](#contributing)

We welcome contributions to the project! You can get involved through the following ways:

Issue: Use for bug reports, feature suggestions, and more.

Pull Requests: We encourage code contributions for new features and bug fixes.

License
-------

[](#license)

See [LICENSE](./LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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 ~2 days

Total

4

Last Release

802d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ac86e517a7246ddca22b5fff5a1842130dcc28e44516e388ca07109312eacac?d=identicon)[ikepu-tp](/maintainers/ikepu-tp)

---

Tags

laravel

### Embed Badge

![Health badge](/badges/ikepu-tp-laravel-file-library/health.svg)

```
[![Health](https://phpackages.com/badges/ikepu-tp-laravel-file-library/health.svg)](https://phpackages.com/packages/ikepu-tp-laravel-file-library)
```

PHPackages © 2026

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