PHPackages                             devnull-ir/laravel-free-host - 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. devnull-ir/laravel-free-host

AbandonedArchivedLibrary

devnull-ir/laravel-free-host
============================

free host for laravel

1.1(3y ago)11MITPHPPHP &gt;=8.1

Since Aug 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/DevNull-IR/laravel-Free-Host)[ Packagist](https://packagist.org/packages/devnull-ir/laravel-free-host)[ RSS](/packages/devnull-ir-laravel-free-host/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Free Host in laravel
====================

[](#free-host-in-laravel)

---

---

---

\#about

With this package, you can save your files in Telegram and use its link

This file can be a photo sticker and all kinds of files with different extensions

Telegram Id Developer: [@Dev\_Null](https://t.me/laravel_city)

Telegram Id Group: [@laravel\_city](https://t.me/laravel_city)

---

Usage
=====

[](#usage)

We always used Facade, but this time you and we should not use Facades

Of course, there may be a change later and Facade will be completed, but do not use Facade for now

The namespace is: `DevNullIr\LaravelFreeHost;`

Change the config file and set the value of token to the value of your robot token and enter the value of channel\_id to a numeric ID and the value of channel\_username to your half-channel user without @ (at).

Now we create a new object of the class

To upload the file, we use the uploadFile method:

```
$newObject = new \DevNullIr\LaravelFreeHost\LaravelFreeHost();

$newObject->uploadFile([
    "name" => "myimg.png",
    "chat_id" => $newObject->channel_id(),
    "document" => "https://cdn01.zoomit.ir/2022/8/galaxy-buds-2-pro-2.jpg?w=768"
]);
```

Ok Down!

Now the file has been uploaded, but you encountered an error!

What is the reason for this error? Yes, you did not add the table to the database, use the following command:

```
php artisan migrate
```

Now make a request to send the file again and you will see that the file has been uploaded and added to the database

get File
--------

[](#get-file)

In order to receive the file you uploaded, you need to enter the following address:

[`http://127.0.0.1:8000/assets/images/myimg.png`](http://127.0.0.1:8000/assets/images/myimg.png)

Now the desired file has started to be downloaded and the work is finished =))

When uploading the file, the value of chat\_id and document and name must be entered in the array

Defaults
========

[](#defaults)

set Default Method
------------------

[](#set-default-method)

```
$newObject = new \DevNullIr\LaravelFreeHost\LaravelFreeHost();
$newObject->setDefault([
    "chat_id" => $newObject->channel_id()
]);
$newObject->uploadFile([
    "name" => "myimg.png",
    "document" => "https://cdn01.zoomit.ir/2022/8/galaxy-buds-2-pro-2.jpg?w=768"
]);
```

We can set a value that is always the same by default so that we don't need to call it in every request and complicate our work.

If you use setDefault like me, you can use the following methods without adding chat\_id But the priority is not with the setDefault value and the value you use in the method section has a higher priority, that is, if you use it like this, a message will be sent to my pv:

```
$newObject = new \DevNullIr\LaravelFreeHost\LaravelFreeHost();
$newObject->setDefault([
    "chat_id" => $newObject->channel_id()
]);
$newObject->uploadFile([
    "name" => "myimg.png",
    "chat_id" => 997471963,
    "document" => "https://cdn01.zoomit.ir/2022/8/galaxy-buds-2-pro-2.jpg?w=768"
]);
```

You can customize the robot or use our robot

To use our robot, you must set the value of token equal to Default in the configuration file, otherwise enter your robot token.

If you use our bot and have your own channel, you must administrate our bot in your channel and give the bot access to send messages

Be sure to enter the config file information completely so as not to get into trouble

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

1375d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e93cbe8942b4c92785450feb0da9e7e2a7346b9f8e7810379d59af3250200e6?d=identicon)[devnull-ir](/maintainers/devnull-ir)

---

Top Contributors

[![DevNull-IR](https://avatars.githubusercontent.com/u/97373457?v=4)](https://github.com/DevNull-IR "DevNull-IR (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devnull-ir-laravel-free-host/health.svg)

```
[![Health](https://phpackages.com/badges/devnull-ir-laravel-free-host/health.svg)](https://phpackages.com/packages/devnull-ir-laravel-free-host)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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