Download the PHP package tanvirofficials/copy-clone without Composer

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

Copy Clone - A laravel nova package for cloning any resource data.

By ->tanvirofficials

Install Copy-clone package to your nova project


$ composer require tanvirofficials/copy-clone

Usage


use Tanvirofficials\CopyClone\CopyClone;


CopyClone::make() ->withMeta([ 'resource' => 'posts', // resource url 'model' => 'App\Post', // model path 'id' => $this->id, // id of record 'relations' => ['tags', 'comments'], // an array of any relations to load (nullable). 'except' => ['status'], // an array of fields to not replicate (nullable). 'override' => ['status' => 'published'] // an array of fields and values which will be set on the modal after Cloning(nullable). ]),

You can either place it on the bottom right or top right corner.

For the bottom right corner , place the code bellow all of your nova feild.

image::https://live.staticflickr.com/65535/49716165116_6b114252ab_k.jpg[Demo Image 1.1]

For the top right corner , place the code on the top of all of your nova feild.

image::https://live.staticflickr.com/65535/49716480142_078255a179_k.jpg[Demo Image 1.2]

You can customize the Copy clone button text->


CopyClone::make() ->withMeta([ .... include other metas .... ,

      'button_text' => 'Custom Copy\Clone Button', // By deafult its copy\clone  icon.

]),

image::https://live.staticflickr.com/65535/49716481277_77624978f8_k.jpg[Demo image 1.3]

You can customize your own dialogue box. By Default ->

Customization of confirm dialogue box .

_->Use title,body,confirm_button_text and cancle_buttontext meta for customization

image::https://live.staticflickr.com/65535/49711939342_756c8d63ac_k.jpg[Demo image 2]


CopyClone::make() ->withMeta([ .... include other metas .... ,

       'title' => 'Custom Title',  // by default 'title' => 'Confirmation'
       'body' => 'Custom Body',   // by default 'body' => 'Are you sure ?'
       'confirm_button_text' => 'Custom Confirm Button' ,   // by default 'confirm_button_text' => 'Copy\Clone'
       'cancle_button_text' => 'Custom Cancle Button'   // by default 'cancle_button_text'  => 'Cancle'
]),

image::https://live.staticflickr.com/65535/49711922942_0d73f97285_k.jpg[Demo image 3]

->This package only available in Resource Detail page.


All versions of copy-clone with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
laravel/nova 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 tanvirofficials/copy-clone contains the following files

Loading the files please wait ....