Skip to content

upworkstation/plagiarism-search

Repository files navigation

PlagiarismSearch

Latest Version on Packagist Total Downloads Build Status StyleCI

PlagiarismSearch.com is a leading plagiarism checking website that will provide you with an accurate report during a short timeframe. Prior to submitting your home assignments, run them through our plagiarism checker to make sure your content is authentic. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require michaelgatuma/plagiarism-search

Usage

Publish the config file

$ php artisan vendor:publish --provider="Michaelgatuma\PlagiarismSearch\PlagiarismSearchServiceProvider" --tag="config"

Creating Report

PlagiarismSearch::createReport()
    ->title("Plagiarism Sample Report")
    ->text(" lorem ipsum dolor sit ....")//Text for check.
    ->file(realpath('pdf-sample.pdf'))//Or upload file for check.
    ->files([
        realpath('pdf-sample.pdf'),
        realpath('pdf-sample2.pdf')
    ])//Or array of real paths
    ->create();

Deleting Report

PlagiarismSearch::deleteReport(24332)->commit();

Listing Report

PlagiarismSearch::listReports()
    ->reports(['324423', '231232'])//optional
    ->limit(20)//optional (default:10)
    ->pages(2)//optional (default:1)
    ->fetch();

Updating Report

PlagiarismSearch::updateReport(743845)
    ->fields([
        'auth_key' => md5('secret'),
        'remote_id' => 'my-remote-id-100',
        'callback_url' => 'https://public-url.com/callback.php?id=743845',
        'title' => 'Title ',
    ])->commit();

Viewing Report

PlagiarismSearch::viewReport(746734)->fetch();

Report Status

PlagiarismSearch::getReportStatus(233231)->fetch();

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.