Download the PHP package dgjackson/simplesheet without Composer

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

SimpleSheet plugin for Craft CMS 3.x

Provides an additional Spreadsheet Field Type for Craft CMS. Read about why we built this on the Digital Butter blog.

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

SimpleSheets utilizes a non-commercial instance of Handsontable via CDN to render spreadsheets. You can find a copy of the Handsontable license online here.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
  2. Then tell Composer to load the plugin:

    composer require /simple-sheet
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for SimpleSheet.

SimpleSheet Overview

SimpleSheet brings basic spreadsheet functionality with a familiar interface to Craft CMS.

Configuring SimpleSheet

Once the SimpleSheet plugin is successfully installed, it is ready to go.

Using SimpleSheet

Creating a SimpleSheet field

You can create a SimpleSheet field in the same way as you would any other field in Craft.

You may now add this new field to your sections.

Adding data

When using a SimpleSheet field in the Entries page, the following actions are available:

Inserting and Deleting rows and columns

Right-click on the sheet to bring up the context-menu. The following options will be be available:

Duplicating data

Data can currently be duplicated through the following steps:

  1. Selected the desired row or column to duplicate.
  2. Select "copy" from the context menu, or use native keyboard shortcuts (Ctrl+C / Cmd+C)
  3. Open the context menu and insert a new row or column.
  4. Select the first cell of the newly-created row or column.
  5. Use keyboard shortcuts to paste the data (Ctrl+V / Cmd+V)

Sorting Data

Data can be sorted by clicking on the header text of the column. A small arrow will appear in the header to indicate that the spreadsheet data is being sorted by that particular column, and whether the data is being sorted in ascending or descending order.

Rearranging row and column order

Rows and columns can be rearranged by dragging and dropping them into a new order. A small hand cursor will appear on the selected row/column header to indicate that the element can be dragged. Note that the row/column must be selected for this cursor to appear.

Filtering

Data filtering is available through a dropdown button on the right side of each column. The following filter options are available:

Keyboard navigation

Basic keyboard navigation is supported:

  1. Tab moves the current cell focus right.
  2. Shift+Tab moves the current cell focus left.
  3. Enter/Return
    • On first keypress, will enter the top leftmost selected cell for editing.
    • On second keypress, will commit any changes and move down one cell.
  4. Directional keys moves the current cell focus in the direction pressed.

Copying from Excel and Google Sheets

Data can be copied from Excel/Google Sheets and pasted into the spreadsheet using standard keyboard shortcuts To Copy: Ctrl+C on Windows/Linux, Cmd+C on MacOS. To Paste: Ctrl+V on Windows/Linux, Cmd+V on MacOS.

Note that formatting and styling features are currently not supported and will not carry over into the SimpleSheet field.

Displaying the SimpleSheet

Embed

Rendering a non-editable version of your spreadsheet in the frontend is a simple matter of using the embed method on your SimpleSheet field. This will return a div container tag with your provided (or auto-generated ID), and will include the JS and CSS required to render the spreadsheet.

    {{ entry.mySimpleSheetField.embed() }}

Embed accepts an optional options object as its only parameter. The following values are currently accepted:

Manual output

If you wish to access the raw data for freeform templating, you can retrieve it using the data property on the spreadsheet to retrieve an array of row arrays.

    {% set sheetData = mySimpleSheetField.data %}

Display the data as a JSON-formatted string:

    {{ sheetData | json_encode(constant('JSON_PRETTY_PRINT')) }}

Retrieve the number of rows:

    {{ sheetData | length }}

Retrieve the number of columns:

    {{ sheetData[0] | length }}

SimpleSheet Roadmap

This plugin is currently in its early stages and has limited functionality. Features planned for future versions:


All versions of simplesheet with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.0.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 dgjackson/simplesheet contains the following files

Loading the files please wait ....