Download the PHP package natives/natives-core without Composer

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

Eva Laravel core

Setup

Installation

To use this package in your own project run:\ php artisan eva-core:install {--n|no-interaction}

Make sure you publish the config this package provides with: php artisan vendor:publish

Besides config this package also offers translations and Open API specs

Fresh instance

Before setting up a new instance first make sure your .env file is setup. See .env variable descriptions below.\ When setting up a new instance of the project run:

php artisan eva-core:setup {--n|no-interaction}\ This will freshly migrate the database and sets up some other services like the geo data. I recommend you create your own setup script which executes this script.

Updating an existing instance

When updating an existing instance of the project run:\ php artisan eva-core:update {--n|no-interaction} This will run missing migrations. I recommend you create your own update script which executes this script.

Environment variables

All .env variables used by the core are found in .env.example. Make sure to copy them to your own project's .env file

APP_DEDICATED_INSTRUMENT_TYPE : The name of the instrument type all instruments by default have

ELASTIC_INDEX_PREFIX : The prefix used to prefix all elastic indeces

ELASTIC_CLOUD_ID : The cloud id of the elastic search instance

ELASTIC_USERNAME : The username of the elastic search instance

ELASTIC_PASSWORD : The password of the elastic search instance

ELASTIC_PUBLIC_CLOUD_ID : The cloud id of the public elastic search instance - used to store data shared on kibana boards

ELASTIC_PUBLIC_USERNAME : The username of the public elastic search instance - used to store data shared on kibana boards

ELASTIC_PUBLIC_PASSWORD : The password of the public elastic search instance - used to store data shared on kibana boards

FILESYSTEM_STORAGE_PATH_DOWNLOADS FILESYSTEM_DIRECTORY_PATH_DOWNLOADS : The directory where all files from the download entities are stored

AWS_ACCESS_KEY_ID : AWS Access key for S3 filesystem settings

AWS_SECRET_ACCESS_KEY : AWS Secret access key for S3 filesystem settings

AWS_REGION : AWS region for S3 filesystem settings - defaults to eu-central-1

AWS_URL : AWS url for S3 filesystem settings

AWS_BUCKET : AWS bucket name for S3 filesystem settings

AWS_BUCKET_GEO : AWS bucket name for storing geo data on S3 filesystem settings

AWS_SDK_ACCESS_KEY_ID : Thw AWS acces key id for AWS cognito service API calls

AWS_SDK_SECRET_ACCESS_KEY : Thw AWS acces key for AWS cognito service API calls

AWS_SDK_REGION : defaults to eu-central-1

CLI Commands

This package offers a number of CLI commands. You can find their description in their classes

Geo Data

Eva uses geo data from townships and labor market regions.\ There are various API's that can be used as the source for this data.\ We use the API data to generate a source file. This source file is the single point of truth we use to create our database entries.

There are various commands to check if the source file or database is up-to-date and other commands to update them if they're not.

New source and new data set

To generate a new township and region source run

You can also generate a new source for either townships or regions. Without the --update-source option you create a new source snapshot. Run it, check the file, and when satisfied add the option to overwrite the source file.

You can create townships and regions from the source file with the following commands. These commands are not careful. They will create or update the data but they will not check if current entries don't exist anymore and the items associated with them need reallocation. So not recommended with an existing data set.

Existing source or existing data set

Once you have your data established you want to monitor for changes. To do this you can run the following commands. These will only show the missing items between multiple API's and the data source.

Check for deviations between API and Source

Snapshot creation for manually checking source set

We currently use the Cbs Open Data Api to create the source file. When checking for changes in the various API results, look for that one.

Create data snapshot and check them in storage under fixed/area

Update the Source file with the data from the API

When your happy with the snapshot, run it again with the update-source option.

Check for deviations between Source file and Database

You can also check if the database is up to date with the source data. The following commands will check for missing items and content deviations.

Update the Database with the data from the Source file

When you decide to update the database with the source data you can run the update commands. These commands will show you each deviation and offers you the choice to update the data.

Before you run this you want to have checked all the changes between the source and the database and want the source in a state in which you can just answer yes to all the changes.

NOTE: Some deployment methods might not allow for interaction. In that case you can run the commands with the yes-to-all flag. Do make sure to check the deviations before running the command

Package contents

Professionals

When creating a professional, a user is created in Amazone Cognito. These are users for the instrument catalog.

The data in the professionals' table is a copy of the users in the cognito user pool. The data from the id-provider is leading

To sync the data in the database with the data from the id-provider you can run the following command.

The commands updates the last_seen_date of all the professionals it found. Naturally the last_seen_date of professionals missing from the id-provider will not update. You might want to remove those from professionals from the database. You can use the destructive option to do so


All versions of natives-core with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-dom Version *
ext-json Version *
aws/aws-sdk-php Version ^3.176
aws/aws-sdk-php-laravel Version ^3.6
doctrine/dbal Version ^3.1
elasticsearch/elasticsearch Version ^7.4
fruitcake/laravel-cors Version ^2.0
guzzlehttp/guzzle Version ^7.0.1
laravel/framework Version ^8.54
laravel/sanctum Version ^2.11
laravel/tinker Version ^2.5
myclabs/php-enum Version ^1.7
spatie/laravel-permission Version ^5.5
webpatser/laravel-uuid Version ^4.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 natives/natives-core contains the following files

Loading the files please wait ....