Download the PHP package wg-vn/lunar-table-rate-shipping without Composer

On this page you can find all versions of the php package wg-vn/lunar-table-rate-shipping. 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 lunar-table-rate-shipping

wg-vn/lunar-table-rate-shipping

Lunar's table rate shipping add-on for the Inertia panel (lunarphp/panel 2.x), forked from lunarphp/table-rate-shipping. Upstream's 2.x add-on requires lunarphp/admin and Filament, which a store running Lunar's Inertia panel does not have; this fork drops them and adds the shipping screens to the Inertia panel. Not affiliated with LunarPHP Ltd.

The PHP namespace stays Lunar\Shipping\, and the package declares replace: lunarphp/table-rate-shipping. For what table rate shipping does (zones, methods, rates, exclusion lists, the shipping modifier and discount type), see the Lunar documentation.

How it differs from upstream

Upstream lunarphp/table-rate-shipping 2.x wg-vn/lunar-table-rate-shipping
Requires lunarphp/admin, filament/filament ^5 lunarphp/core and lunarphp/panel, 2.0.0-alpha.6 line
Admin screens Filament resources (ShippingPlugin) Settings > Shipping in the Inertia panel: zones (coverage, exclusion lists, rates and price breaks), methods (driver, weight limits, weekly schedule, customer groups), exclusion lists
Shipping discount form Filament schema on ShippingDiscount ShippingDiscountForm, the panel's DiscountTypeForm
shipping:manage permission guard read from the Filament panel (skipped without it) lunar.staff.guard
ShippingExclusion, ShippingExclusionList, ShippingZonePostcode factories namespace Lunar\Shipping\Factories, which the package does not autoload Lunar\Shipping\Database\Factories
Tests in the monorepo (tests/shipping) in this repository, on Orchestra Testbench, plus tests for the panel screens

Installation

The last command copies the compiled screens (build/) to public/vendor/lunar-panel/lunar-shipping; run it again after every update (--tag=panel-all-assets publishes the panel and every add-on). In local development php artisan lunar:panel:link symlinks build/ instead. The add-on is on unless LUNAR_SHIPPING_TABLES_ENABLED=false.

Staff need the shipping:manage permission (or Lunar's admin flag) to see Settings > Shipping.

Development

The screens are Vue pages in resources/js, compiled with @lunarphp/panel-vite-plugin into one bundle that uses the panel's own Vue, Inertia and components. Their strings are resources/lang/en/panel.php, served to the panel under the lunar-shipping namespace.

Syncing with upstream

This repository's history starts at upstream's 2.0.0-alpha.6 tag of lunarphp/table-rate-shipping (the read-only split of the monorepo's packages/table-rate-shipping), then a commit adding upstream's tests from the monorepo, then this fork's changes. To take a later upstream release, for example 2.0.0-alpha.7:

Conflicts appear only where this fork changed the same files (mostly src/Filament, which is gone here, and ShippingDiscount). Upstream's tests live in the monorepo, so bring their changes over separately:

Then match lunarphp/core and lunarphp/panel in composer.json to the new release, read upstream's changelog for migrations that changed in place, run the tests, and rebuild build/ if the panel's npm packages (@lunarphp/panel, @lunarphp/panel-vite-plugin) changed.

Releasing

Versions follow upstream's with one more segment, as in wg-vn/lunar-core: the first release built on upstream 2.0.0-alpha.6 is v2.0.0-alpha.6.1, the next one v2.0.0-alpha.6.2, and the first after merging upstream 2.0.0-alpha.7 is v2.0.0-alpha.7.1.

  1. Add a ## [x.y.z...] section to CHANGELOG.md.
  2. Tag and push that tag only: git tag v2.0.0-alpha.6.2 && git push origin v2.0.0-alpha.6.2. Never git push --tags: the local clone holds upstream's tags (2.0.0-alpha.6, without the v).
  3. The Publish to Packagist workflow asks Packagist to re-read the repository and creates a GitHub Release from the changelog section.

All versions of lunar-table-rate-shipping with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
lunarphp/core Version >=2.0.0-alpha.6 <2.0.0-alpha.7
lunarphp/panel Version >=2.0.0-alpha.6 <2.0.0-alpha.7
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 wg-vn/lunar-table-rate-shipping contains the following files

Loading the files please wait ...