Download the PHP
package kraenzle-ritter/nara-risk without Composer
On this page you can find all versions of the php package
kraenzle-ritter/nara-risk. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor kraenzle-ritter Package nara-risk Short Description Laravel package for automated digital preservation risk assessment based on NARA Digital Preservation Framework TTL/RDF data License
MIT
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.
[](https://github.com/kraenzle-ritter/nara-risk/actions)
[](https://github.com/kraenzle-ritter/nara-risk/actions)
[](https://codecov.io/gh/kraenzle-ritter/nara-risk)
[](https://phpstan.org/)
[](https://packagist.org/packages/kraenzle-ritter/nara-risk)
[](https://packagist.org/packages/kraenzle-ritter/nara-risk)
[](https://packagist.org/packages/kraenzle-ritter/nara-risk)
[](https://packagist.org/packages/kraenzle-ritter/nara-risk)
A Laravel package for automated digital preservation risk assessment based on the NARA Digital Preservation Framework.
## Features
- Official NARA TTL/RDF data integration
- Automatic caching with 28-day refresh cycle
- Nara Risk assessment for 100+ file formats via PRONOM IDs
- Nara Preservation action recommendations
- Support for 16 NARA format categories
- Nara Tool suggestions for preservation workflows
## Installation
The package auto-registers via Laravel's package discovery.
## Usage
## Response Structure
Each assessment returns an array with these key fields:
- `pronom_id` - PRONOM identifier
- `format_name` - Human-readable format name
- `category` - NARA format category
- `risk_level` - Low, Moderate, or High
- `recommended_action` - Retain, Transform, Assess, or Identify
- `tools` - Array of suggested preservation tools
- `nara_compliant` - Boolean indicating NARA framework coverage
- `assessment_notes` - Detailed recommendations
## Additional Methods
## Configuration
Publish the configuration with `php artisan vendor:publish --tag=nara-config`, or set the
environment variable. The defaults:
| Key | Default | |
|---|---|---|
| `cache_directory` | `storage/app/nara` | TTL files and the parsed format table |
| `cache_days` | `28` | age after which `fileformats.ttl` is downloaded again |
| `download` | `true` (`NARA_DOWNLOAD`) | `false` on servers without internet access: the file in the cache directory is used however old, and nothing waits for a download |
| `timeout` | `60` | seconds per download |
| `retry_after_minutes` | `360` | a failed download is not retried before; meanwhile the old file is used, or the assessment fails at once if there is none |
| `schema_urls` | archives.gov | `fileformats` is read by the assessment; `nara:download-schema` fetches all |
The parsed table is stored next to the TTL file (`nara_fileformats.ttl.parsed`) and reused
while the file is unchanged, so a queue job assessing a single file does not parse 1 MB of
Turtle each time.
## Testing
Run the test suite:
Some tests download from archives.gov; `NaraTtlCacheTest` runs without network.
## Requirements
- PHP 8.2+
- Laravel 11.44+ | 12.4+ | 13
## Data Sources
This package uses official data from:
- [NARA Digital Preservation Framework](https://www.archives.gov/preservation/digital-preservation/risk)
- [PRONOM Technical Registry](https://www.nationalarchives.gov.uk/PRONOM/)
- [Archives.gov TTL/RDF files](https://www.archives.gov/preservation/digital-preservation/linked-data)
Data is cached locally and refreshed automatically every 28 days.
## License
This project is licensed under the [MIT License](LICENSE).
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 kraenzle-ritter/nara-risk contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.