Download the PHP package husam-awadhi/power-parser without Composer

On this page you can find all versions of the php package husam-awadhi/power-parser. 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 power-parser

Actions Latest Stable Version PHP Version Require License Total Downloads

File parsing tool with a configured blueprint design with support for ods, xlsx, xls, xml, html, sylk, csv file types out-of-the-box.

Installation

Require PowerParser using Composer:

Usage

To parse a file you'll need to a Parser instance which can be done by using these 3 lines. which will return the parsed file data, ready for your magic! :sparkler:

Blueprint

Blueprint Basics

refer to example, Valid Blueprint

Version string

blueprint version. not yet utilized but will be used for backward compatibility.


Meta object

object contains meta data.

File object

object contains parsed file meta data.

Extension string

parsed file extension.

Name string

parsed file name. only used in the returned parsed file data.


Blueprint object array

array of main parameters to capture data in parsed file.

Name string

code of captured data, when returning the parsed as array this will be used as array key for the matched data.

Mandatory boolean

when true, parsing will throw an exception if data not matched in the parsed file.

Conditions objects array

rules and clauses for finding an element.

Column integers array

expected location, a column number in Excel or CSV file

is, isNot, anyOf, noneOf string [one only]

Used to match the condition with the given value. If you want to use null as a value, use "{null}", which will be converted in the BlueprintInterpreter.

Fields objects array

once a match has been found, any data defined here will be captured.

Name string

The name of the data found in the field. When returning the parsed data as an array, this will be used as the array key for the matched data.

Position integer

cell number in Excel or CSV files

Format format [optional]

formats applied to matched data, refer to Processors


Processors

processors has 2 types,

Casting

  1. bool-strict: true
    1. if value = true, 1, "true"
  2. bool: false,
    1. if value has a value and is not equal to true.
    2. If value is true, 1, or "true".
  3. int: PHP casting
  4. float: PHP casting

Example:

Formatting

  1. money
  2. string length limits

Example:

License

PowerParser is an open-sourced software licensed under the MIT license.


All versions of power-parser with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
phpoffice/phpspreadsheet Version ^1.28 || ^2.2.2
symfony/yaml Version ^7.1.6
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 husam-awadhi/power-parser contains the following files

Loading the files please wait ....