Skip to content

Commit

Permalink
Initialised the client along with bunch of scafoldings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedmaazin committed Mar 8, 2023
0 parents commit d00a87c
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ides
.idea
.vscode

# phpunit.
.phpunit.result.cache
.phpunit.cache

# composer
composer.lock
vendor
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Replicate PHP client

This is a PHP client for the [Replicate](https://replicate.com/) .
39 changes: 39 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "mazin/replicate-php",
"description": "This is a PHP client for Replicate.",
"type": "client-library",
"license": "Apache License 2.0",
"version": "1.0.0",
"keywords": [
"replicate",
"machine learning",
"ai",
"artificial intelligence"
],
"authors": [
{
"name": "Mazin Ahmed",
"email": "[email protected]"
}
],
"require": {
"php": "^8.1"
},
"require-dev": {
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
"Mazin\\Replicate\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Mazin\\Replicate\\Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"scripts": {
"test": "vendor/bin/phpunit"
}
}
8 changes: 8 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
<testsuites>
<testsuite name="ReplicateUnitTests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>
8 changes: 8 additions & 0 deletions src/Replicate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Mazin\Replicate;

class Replicate
{

}
13 changes: 13 additions & 0 deletions tests/BaseTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Mazin\Replicate\Tests;

use PHPUnit\Framework\TestCase;

class BaseTest extends TestCase
{
public function test_it_works(): void
{
$this->assertTrue(true);
}
}

0 comments on commit d00a87c

Please sign in to comment.