Download the PHP package devnull-ir/laravel-free-host without Composer

On this page you can find all versions of the php package devnull-ir/laravel-free-host. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-free-host

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

Telegram Id Group: @laravel_city


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:

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:

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

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

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

set Default Method

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:

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


All versions of laravel-free-host with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version >=v8.83.0
php Version >=8.1
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devnull-ir/laravel-free-host contains the following files

Loading the files please wait ....