Download the PHP package ocdladefense/appserver-car without Composer

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

Appserver CAR Module

Example queries

SELECT id, title, plaintiff, defendant, published_date, decision_date FROM car ORDER BY decision_date DESC;

SELECT * FROM car WHERE year=2022 AND month=2 AND published_date=0000-00-0 ORDER BY day DESC;

UPDATE car SET decision_date = CAST(CONCAT_WS("-",year,month,day) AS DATE) WHERE year=2022 AND month=2 AND published_date=0000-00-0

UPDATE car SET decision_date = 20220224 WHERE year=2022 AND month=2

SELECT CAST(CONCAT_WS("-",year,month,day) AS DATE) FROM car WHERE year=2022 AND month=2

UPDATE car SET decision_date = STR_TO_DATE(CONCAT_WS("-",year,month,day),'%Y-%m,%d') WHERE year=2022 AND month=2 AND published_date=0000-00-0

SELECT id, published_date, decision_date FROM car WHERE year=2022 AND month=2

SELECT CONCAT_WS("-",year,month,day) FROM car WHERE year=2022

Installation

Summary

Installation consists of a PHP executable component and a MySQL database component.

PHP Executable

  1. Clone this repository into your local Appserver's /modules directory.
  2. Rename the newly-downloaded repository directory to car/.
  3. Validate that the config/config.php contains database-related options for setting the database name, username and password.
    • This section should be completed with the values chosen in the "MySQL Database" section, below.

MySQL Database

  1. Identify the data/sql folder and data/sql/car.sql file in this repo.
    • This SQL file contains data to be imported into your Appserver's database.
  2. Open your WAMP --> phpMyAdmin database utility.
  3. Login using the default "superuser" credentials:
    • username: root
    • password: [the default root password is empty]
  4. Familiarize yourself with the user interface.
  5. Create a new database; you can name it anything, but let's give preference to "ocdla."
  6. Optionally, use phpMyAdmin to create an additional user (separate from the root user) with access to the new database.
    • A MySQL user consists of a username, password and a set of privileges for a given database or database.table combination.
  7. Identify the import functionality and either select the car.sql file for upload/import or copy and paste its contents into the phpMyAdmin interface; execute the import.
    • The car.sql imports both the new car table/schema and data (rows) into the database server.
  8. Use phpMyAdmin to browse the newly-imported data; validate that the data from car.sql was imported successfully.
  9. Configure the Appserver's config/config.php database section with the values for database name and username and password.

Validate installation

To validate installation of the car repo + data, navigate to http://appserver/car/list.

Example endpoints - this project

View list of case reviews

https://trust.ocdla.org/car/list


All versions of appserver-car with dependencies

PHP Build Version
Package Version
Requires ocdladefense/lib-database Version ~2.0
ocdladefense/lib-date Version ~1.0
ocdladefense/lib-gis Version ~1.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 ocdladefense/appserver-car contains the following files

Loading the files please wait ....