Recommend this page to a friend! |
Download .zip |
Info | View files (203) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-08-26 (16 days ago) | Not yet rated by the users | Total: 25 | All time: 10,318 This week: 97 |
Version | License | PHP version | Categories | |||
farmprice 1.0 | The PHP License | 5 | PHP 5, Web services, Business |
Description | Author | |||
This package implements API to get the prices from agriculture markets. Innovation Award
|
An API developed to easily get current farm prices of different in the Nigerian agricultural market. API was developed using slim v3
I have added a sample database data in the src/db/ folder. Simply import.
Clone this repo and call these endpoints using the defined RESTFul methods
POST '/api/v1/user/new' Pass: {'name' => 'name', 'state' => 'state', 'about' => 'about'} - Add a farmer
GET '/api/v1/user/{id}' - Get details of a farmer
POST '/api/v1/farm/produce/new' - Pass : {'name' => 'name', 'description' => 'description'} Add a farm produce
POST '/api/v1/farm/produce/add/price' - Pass : {'userId' => 'userId', 'produceId' => 'produceId', 'pricePerKg' => 'pricePerKg'}- Add price for a farm produce
PUT '/api/v1/farm/produce/add/price' - Pass : {'userId' => 'userId', 'produceId' => 'produceId', 'pricePerKg' => 'pricePerKg'} Update farm price
GET '/api/v1/farm/produce/price/{id}' - fetch prices of a particular produce
GET '/api/v1/farm/produce/list' - fetch all produces
Keep in touch: radioactive.uche11@gmail.com
Files |
File | Role | Description | ||
---|---|---|---|---|
.idea (4 files) | ||||
public (1 file) | ||||
src (4 directories) | ||||
vendor (1 file, 7 directories) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
test.php | Class | Class source | ||
test2.php | Class | Class source |
Files | / | .idea |
File | Role | Description |
---|---|---|
farmprice.iml | Data | Auxiliary data |
modules.xml | Data | Auxiliary data |
vcs.xml | Data | Auxiliary data |
workspace.xml | Data | Auxiliary data |
Files | / | src | / | db-config |
File | Role | Description |
---|---|---|
connect.php | Class | Class source |
models.php | Class | Class source |
Files | / | vendor |
File | Role | Description | ||
---|---|---|---|---|
composer (9 files) | ||||
container-interop (1 directory) | ||||
nikic (1 directory) | ||||
pimple (1 directory) | ||||
psr (2 directories) | ||||
slim (1 directory) | ||||
vlucas (1 directory) | ||||
autoload.php | Aux. | Auxiliary script |
Files | / | vendor | / | composer |
File | Role | Description |
---|---|---|
autoload_classmap.php | Aux. | Auxiliary script |
autoload_files.php | Aux. | Auxiliary script |
autoload_namespaces.php | Aux. | Auxiliary script |
autoload_psr4.php | Aux. | Auxiliary script |
autoload_real.php | Class | Class source |
autoload_static.php | Class | Class source |
ClassLoader.php | Class | Class source |
installed.json | Data | Auxiliary data |
LICENSE | Lic. | License text |
Files | / | vendor | / | container-interop | / | container-interop |
File | Role | Description | ||
---|---|---|---|---|
docs (4 files, 1 directory) | ||||
src (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | container-interop | / | container-interop | / | docs |
File | Role | Description | ||
---|---|---|---|---|
images (3 files) | ||||
ContainerInterface-meta.md | Data | Auxiliary data | ||
ContainerInterface.md | Class | Class source | ||
Delegate-lookup-meta.md | Data | Auxiliary data | ||
Delegate-lookup.md | Data | Auxiliary data |
Files | / | vendor | / | container-interop | / | container-interop | / | docs | / | images |
File | Role | Description |
---|---|---|
interoperating_containers.png | Data | Auxiliary data |
priority.png | Icon | Icon image |
side_by_side_containers.png | Icon | Icon image |
Files | / | vendor | / | container-interop | / | container-interop | / | src |
File | Role | Description | ||
---|---|---|---|---|
Interop (1 directory) |
Files | / | vendor | / | container-interop | / | container-interop | / | src | / | Interop |
File | Role | Description | ||
---|---|---|---|---|
Container (1 file, 1 directory) |
Files | / | vendor | / | container-interop | / | container-interop | / | src | / | Interop | / | Container |
File | Role | Description | ||
---|---|---|---|---|
Exception (2 files) | ||||
ContainerInterface.php | Class | Class source |
Files | / | vendor | / | container-interop | / | container-interop | / | src | / | Interop | / | Container | / | Exception |
File | Role | Description |
---|---|---|
ContainerException.php | Class | Class source |
NotFoundException.php | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route |
File | Role | Description | ||
---|---|---|---|---|
src (8 files, 3 directories) | ||||
test (2 files, 3 directories) | ||||
.hhconfig | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
FastRoute.hhi | Class | Class source | ||
LICENSE | Lic. | License text | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route | / | src |
File | Role | Description | ||
---|---|---|---|---|
DataGenerator (5 files) | ||||
Dispatcher (5 files) | ||||
RouteParser (1 file) | ||||
BadRouteException.php | Class | Class source | ||
bootstrap.php | Aux. | Auxiliary script | ||
DataGenerator.php | Class | Class source | ||
Dispatcher.php | Class | Class source | ||
functions.php | Example | Example script | ||
Route.php | Class | Class source | ||
RouteCollector.php | Class | Class source | ||
RouteParser.php | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route | / | src | / | DataGenerator |
File | Role | Description |
---|---|---|
CharCountBased.php | Class | Class source |
GroupCountBased.php | Class | Class source |
GroupPosBased.php | Class | Class source |
MarkBased.php | Class | Class source |
RegexBasedAbstract.php | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route | / | src | / | Dispatcher |
File | Role | Description |
---|---|---|
CharCountBased.php | Class | Class source |
GroupCountBased.php | Class | Class source |
GroupPosBased.php | Class | Class source |
MarkBased.php | Class | Class source |
RegexBasedAbstract.php | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route | / | src | / | RouteParser |
File | Role | Description |
---|---|---|
Std.php | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route | / | test |
File | Role | Description | ||
---|---|---|---|---|
Dispatcher (5 files) | ||||
HackTypechecker (1 file, 1 directory) | ||||
RouteParser (1 file) | ||||
bootstrap.php | Aux. | Auxiliary script | ||
RouteCollectorTest.php | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route | / | test | / | Dispatcher |
File | Role | Description |
---|---|---|
CharCountBasedTest.php | Class | Class source |
DispatcherTest.php | Class | Class source |
GroupCountBasedTest.php | Class | Class source |
GroupPosBasedTest.php | Class | Class source |
MarkBasedTest.php | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route | / | test | / | HackTypechecker |
File | Role | Description | ||
---|---|---|---|---|
fixtures (3 files) | ||||
HackTypecheckerTest.php | Class | Class source |
Files | / | vendor | / | nikic | / | fast-route | / | test | / | HackTypechecker | / | fixtures |
File | Role | Description |
---|---|---|
all_options.php | Class | Class source |
empty_options.php | Aux. | Auxiliary script |
no_options.php | Aux. | Auxiliary script |
Files | / | vendor | / | nikic | / | fast-route | / | test | / | RouteParser |
File | Role | Description |
---|---|---|
StdTest.php | Class | Class source |
Files | / | vendor | / | pimple | / | pimple |
File | Role | Description | ||
---|---|---|---|---|
ext (1 directory) | ||||
src (1 directory) | ||||
.travis.yml | Data | Auxiliary data | ||
CHANGELOG | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.rst | Doc. | Documentation |
Files | / | vendor | / | pimple | / | pimple | / | ext | / | pimple |
File | Role | Description | ||
---|---|---|---|---|
tests (22 files) | ||||
config.m4 | Data | Auxiliary data | ||
config.w32 | Data | Auxiliary data | ||
php_pimple.h | Data | Auxiliary data | ||
pimple.c | Data | Auxiliary data | ||
pimple_compat.h | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | pimple | / | pimple | / | ext | / | pimple | / | tests |
File | Role | Description |
---|---|---|
001.phpt | Example | Example script |
002.phpt | Example | Example script |
003.phpt | Example | Example script |
004.phpt | Example | Example script |
005.phpt | Class | Class source |
006.phpt | Class | Class source |
007.phpt | Example | Example script |
008.phpt | Example | Example script |
009.phpt | Example | Example script |
010.phpt | Class | Class source |
011.phpt | Class | Class source |
012.phpt | Example | Example script |
013.phpt | Example | Example script |
014.phpt | Example | Example script |
015.phpt | Example | Example script |
016.phpt | Example | Example script |
017.phpt | Example | Example script |
017_1.phpt | Example | Example script |
018.phpt | Class | Class source |
019.phpt | Class | Class source |
bench.phpb | Example | Example script |
bench_shared.phpb | Example | Example script |
Files | / | vendor | / | pimple | / | pimple | / | src | / | Pimple |
File | Role | Description | ||
---|---|---|---|---|
Exception (4 files) | ||||
Psr11 (2 files) | ||||
Tests (3 files, 2 directories) | ||||
Container.php | Class | Class source | ||
ServiceIterator.php | Class | Class source | ||
ServiceProviderInterface.php | Class | Class source |
Files | / | vendor | / | pimple | / | pimple | / | src | / | Pimple | / | Exception |
File | Role | Description |
---|---|---|
ExpectedInvokableException.php | Class | Class source |
FrozenServiceException.php | Class | Class source |
InvalidServiceIdentifierException.php | Class | Class source |
UnknownIdentifierException.php | Class | Class source |
Files | / | vendor | / | pimple | / | pimple | / | src | / | Pimple | / | Psr11 |
File | Role | Description |
---|---|---|
Container.php | Class | Class source |
ServiceLocator.php | Class | Class source |
Files | / | vendor | / | pimple | / | pimple | / | src | / | Pimple | / | Tests |
File | Role | Description | ||
---|---|---|---|---|
Fixtures (4 files) | ||||
Psr11 (2 files) | ||||
PimpleServiceProviderInterfaceTest.php | Class | Class source | ||
PimpleTest.php | Class | Class source | ||
ServiceIteratorTest.php | Class | Class source |
Files | / | vendor | / | pimple | / | pimple | / | src | / | Pimple | / | Tests | / | Fixtures |
File | Role | Description |
---|---|---|
Invokable.php | Class | Class source |
NonInvokable.php | Class | Class source |
PimpleServiceProvider.php | Class | Class source |
Service.php | Class | Class source |
Files | / | vendor | / | pimple | / | pimple | / | src | / | Pimple | / | Tests | / | Psr11 |
File | Role | Description |
---|---|---|
ContainerTest.php | Class | Class source |
ServiceLocatorTest.php | Class | Class source |
Files | / | vendor | / | psr |
File | Role | Description | ||
---|---|---|---|---|
container (3 files, 1 directory) | ||||
http-message (4 files, 1 directory) |
Files | / | vendor | / | psr | / | container |
File | Role | Description | ||
---|---|---|---|---|
src (3 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | psr | / | container | / | src |
File | Role | Description |
---|---|---|
ContainerExceptionInterface.php | Class | Class source |
ContainerInterface.php | Class | Class source |
NotFoundExceptionInterface.php | Class | Class source |
Files | / | vendor | / | psr | / | http-message |
File | Role | Description | ||
---|---|---|---|---|
src (7 files) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | psr | / | http-message | / | src |
File | Role | Description |
---|---|---|
MessageInterface.php | Class | Class source |
RequestInterface.php | Class | Class source |
ResponseInterface.php | Class | Class source |
ServerRequestInterface.php | Class | Class source |
StreamInterface.php | Class | Class source |
UploadedFileInterface.php | Class | Class source |
UriInterface.php | Class | Class source |
Files | / | vendor | / | slim | / | slim |
File | Role | Description | ||
---|---|---|---|---|
Slim (12 files, 4 directories) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text |
Files | / | vendor | / | slim | / | slim | / | Slim |
File | Role | Description | ||
---|---|---|---|---|
Exception (6 files) | ||||
Handlers (6 files, 1 directory) | ||||
Http (11 files) | ||||
Interfaces (6 files, 1 directory) | ||||
App.php | Class | Class source | ||
CallableResolver.php | Class | Class source | ||
CallableResolverAwareTrait.php | Class | Class source | ||
Collection.php | Class | Class source | ||
Container.php | Class | Class source | ||
DefaultServicesProvider.php | Class | Class source | ||
DeferredCallable.php | Class | Class source | ||
MiddlewareAwareTrait.php | Class | Class source | ||
Routable.php | Class | Class source | ||
Route.php | Class | Class source | ||
RouteGroup.php | Class | Class source | ||
Router.php | Class | Class source |
Files | / | vendor | / | slim | / | slim | / | Slim | / | Exception |
File | Role | Description |
---|---|---|
ContainerException.php | Class | Class source |
ContainerValueNotFoundException.php | Class | Class source |
InvalidMethodException.php | Class | Class source |
MethodNotAllowedException.php | Class | Class source |
NotFoundException.php | Class | Class source |
SlimException.php | Class | Class source |
Files | / | vendor | / | slim | / | slim | / | Slim | / | Handlers |
File | Role | Description | ||
---|---|---|---|---|
Strategies (2 files) | ||||
AbstractError.php | Class | Class source | ||
AbstractHandler.php | Class | Class source | ||
Error.php | Class | Class source | ||
NotAllowed.php | Class | Class source | ||
NotFound.php | Class | Class source | ||
PhpError.php | Class | Class source |
Files | / | vendor | / | slim | / | slim | / | Slim | / | Handlers | / | Strategies |
File | Role | Description |
---|---|---|
RequestResponse.php | Class | Class source |
RequestResponseArgs.php | Class | Class source |
Files | / | vendor | / | slim | / | slim | / | Slim | / | Http |
File | Role | Description |
---|---|---|
Body.php | Class | Class source |
Cookies.php | Class | Class source |
Environment.php | Class | Class source |
Headers.php | Class | Class source |
Message.php | Class | Class source |
Request.php | Class | Class source |
RequestBody.php | Class | Class source |
Response.php | Class | Class source |
Stream.php | Class | Class source |
UploadedFile.php | Class | Class source |
Uri.php | Class | Class source |
Files | / | vendor | / | slim | / | slim | / | Slim | / | Interfaces |
File | Role | Description | ||
---|---|---|---|---|
Http (3 files) | ||||
CallableResolverInterface.php | Class | Class source | ||
CollectionInterface.php | Class | Class source | ||
InvocationStrategyInterface.php | Class | Class source | ||
RouteGroupInterface.php | Class | Class source | ||
RouteInterface.php | Class | Class source | ||
RouterInterface.php | Class | Class source |
Files | / | vendor | / | slim | / | slim | / | Slim | / | Interfaces | / | Http |
File | Role | Description |
---|---|---|
CookiesInterface.php | Class | Class source |
EnvironmentInterface.php | Class | Class source |
HeadersInterface.php | Class | Class source |
Files | / | vendor | / | vlucas | / | phpdotenv |
File | Role | Description | ||
---|---|---|---|---|
src (3 files, 1 directory) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE.txt | Doc. | Documentation |
Files | / | vendor | / | vlucas | / | phpdotenv | / | src |
File | Role | Description | ||
---|---|---|---|---|
Exception (5 files) | ||||
Dotenv.php | Class | Class source | ||
Loader.php | Class | Class source | ||
Validator.php | Class | Class source |
Files | / | vendor | / | vlucas | / | phpdotenv | / | src | / | Exception |
File | Role | Description |
---|---|---|
ExceptionInterface.php | Class | Class source |
InvalidCallbackException.php | Class | Class source |
InvalidFileException.php | Class | Class source |
InvalidPathException.php | Class | Class source |
ValidationException.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.