Download the PHP package naril/dbase without Composer

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

dbase

Build Status SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version PHP Version License

Library for processing dbase tables.

Table of Contents

  1. Supported formats
    1. Supported memo formats
  2. Installation
  3. Documentation
    1. Reading tables
    2. Inserting rows
    3. Automatic type conversion
    4. Record object
      1. Reading data from record
      2. Writing data to record
    5. Record object
    6. Updating tables
    7. Deleting records
    8. Transactions
    9. Defining tables
      1. Creating table from another table
    10. Filters
      1. Using filters
      2. Writing custom filter

Supported formats

Supported memo formats

Installation

Composer

Using composer to install this library is strongly recommended.

`

Then in your script use this line of code

``

Old-fashion style

Download library and place it somewhere on disk.

Then in your script use this line of code

``

Documentation

Reading tables

Table object is both array accessible and traversable. You can loop over it as collection or read specific record by it's index.

``

Inserting rows

You can insert records as record object or as an associative array.

Note that insert operation is not atomic. Use transactions to achieve integrity safety.

`

Automatic type conversion

Dbase and PHP types are automatically converted during fetching and storing of rows.

Dbase type Type name Possible values PHP type
C Character any string string
D Date DDMMYY DateTime
L Logical [YTNF?] boolean
M Memo any string string
N Numeric [0-9] int

Record object

Record is basically ArrayObject. Object that can be treated as array.

Reading data from record

``

Writing data to record

``

Updating tables

Note that update operation is not atomic. Use transactions to achieve integrity safety.

``

Deleting records

Do not use Record::setDeleted to delete records

``

Transactions

Transactions can prevent two processes from updating the same file.

When some process cannot acquire lock on the table exception is being thrown.

Transactions can also save you from unnecessary header updates. Header is updated at the end of transaction.

``

Defining tables

To construct new table use builder object.

``

Creating table from another table

You can create new table form existing table definition.

`

Filters

Although values are automatically converted based on column type sometimes it is necessary to perform additional processing. To achieve that you can add filters on columns.

Using filters

``

Filters are applied during loading in the order they are defined. During serialization filters are applied in reversed order.

Writing custom filter

``


All versions of dbase with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
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 naril/dbase contains the following files

Loading the files please wait ....