Download the PHP package zeroar/withfile without Composer

On this page you can find all versions of the php package zeroar/withfile. 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 withfile

Livewire Uploading File

Latest Stable Version Total Downloads License

Introduction

Do you have a problem for uploading file in livewire component? If yes, same with me. If you use input with type file and implement wire:model, is that work for you to upload file? thats not work for now. Why this is happen? because livewire is send json data, not form data. I don't know this problem will gone in livewire future version. I research the solution for this problem and i found the solution for now. With this extensions, i hope this extensions will answer the problem.

Installation

Install this using composer.

After you install, update your layouts and add @withfileScripts after @livewireScripts.

Implementation Component

Now you can add this extension in your livewire component. To implement this, see the example below:

$fileable

This property is required. If you not implement this, your upload file will not working. So please implement this to your component.

updatedFoo($value, $old_value)

Updated method is same with livewire lifecycle hooks. But in livewire just only have one $value, in this i have add the $old_value.

Implementation in view

In your blade file, you can implement looks like example below:

Or if you want to resize your image before send the file, below is example for this:

Or if you want to resize both of width and height, below is example for this:

wire:withfile

Use this attribute looks like you use wire:model, but it's not same with wire:model. So, all in wire:model can't implemented to wire:withfile.

with-resize-if-image

This is will resize your file if you upload an image. Before file image send to your component, image will resized.

with-max-both

This will add the maximum of width and height. In example, if height greater than width then the height will be set to maximum and width will automatically resized.

with-max-width, with-max-height

Use this if you wan't to resize just height or width for the maximum of image width or height.


All versions of withfile with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
livewire/livewire Version ^1.0
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 zeroar/withfile contains the following files

Loading the files please wait ....