Plates Template Integration for Slim micro framework 3

Overview

VERSION LICENSE Actions Status Coveralls Code Climate Maintainability SymfonyInsight Grade

Plates Template Integration for Slim micro framework 3

Render your Slim 3 application views using Plates template engine.

Install

Via Composer

$ composer require projek-xyz/slim-plates --prefer-dist

Requires Slim micro framework 3 and PHP 5.5.0 or newer.

Usage

// Create Slim app
$app = new \Slim\App();

// Fetch DI Container
$container = $app->getContainer();

// Register Plates View helper:
// Option 1, using PlatesProvider
$container->register(new \Projek\Slim\PlatesProvider);

// Option 2, using Closure
$container['view'] = function ($c) {
    $view = new \Projek\Slim\Plates([
        // Path to view directory (default: null)
        'directory' => 'path/to/views',
        // Path to asset directory (default: null)
        'assetPath' => 'path/to/static/assets',
        // Template extension (default: 'php')
        'fileExtension' => 'tpl',
        // Template extension (default: false) see: http://platesphp.com/extensions/asset/
        'timestampInFilename' => false,
    ]);

    // Set \Psr\Http\Message\ResponseInterface object
    // Or you can optionaly pass `$c->get('response')` in `__construct` second parameter
    $view->setResponse($c->get('response'));

    // Instantiate and add Slim specific extension
    $view->loadExtension(new Projek\Slim\PlatesExtension(
        $c->get('router'),
        $c->get('request')->getUri()
    ));

    return $view;
};

// Define named route
$app->get('/hello/{name}', function ($request, $response, $args) {
    return $this->view->render('profile', [
        'name' => $args['name']
    ]);
})->setName('profile');

// Run app
$app->run();

NOTE:

  • If you are using option 1 please make sure you already have $container['settings']['view'] in your configuration file.
  • Plates::setResponse() is required to use Plates::render() otherwise \LogicException will thrown.

Custom functions

This component exposes some Slim functions to your Plates templates.

pathFor()

You can use this function to generate complete URLs to any Slim application named route. Example:

 $this->layout('base-template') ?>

 $this->start('body') ?>
<h1>Hallo $this->e($name)?>h1>
<small>$this->pathFor('profile', ['name'=> $name])?>small>  $this->stop() ?>

baseUrl($permalink = '')

Retrieve the base url of your Slim application. Example:

baseUrl()?>">Some Link">
"baseUrl()?>">Some Link

Or you can pass a permalink

baseUrl('some/path')?>">Some Other Link">
"baseUrl('some/path')?>">Some Other Link

basePath()

Retrieve the base url of your Slim application. Example:

">
  "stylesheet" href="basePath().'asset/css/main.css'?>">

uriFull()

Retrieve full request URI.

uriScheme()

Retrieve the scheme component of the URI.

uriHost()

Retrieve the host component of the URI

uriPort()

Retrieve the port component of the URI.

uriPath()

Retrieve the path component of the URI.

uriQuery()

Retrieve the query string component of the URI.

uriFragment()

Retrieve the fragment component of the URI.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

License

This library is open-sourced software licensed under MIT license.

Comments
  • Eventloop applications always use the same response

    Eventloop applications always use the same response

    Need a way to set the response for each request made to the application, in apps like Swoole the response is set only the first time and not for each request. A middleware would be nice for updating the response object inside the library each request.

    wontfix pr welcome 
    opened by odahcam 4
  • Update phpunit/phpunit requirement from ~4.0 to ~4.0 || ~9.0

    Update phpunit/phpunit requirement from ~4.0 to ~4.0 || ~9.0

    Updates the requirements on phpunit/phpunit to permit the latest version.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    9.2.2 - 2020-06-07

    Changed

    • Improved message of exception that is raised when multiple matchers can be applied to a test double invocation

    Fixed

    • Fixed default values for lowUpperBound and highLowerBound in phpunit.xsd

    9.2.1 - 2020-06-05

    Fixed

    • #4269: Test with @coversNothing annotation is wrongly marked as risky with forceCoversAnnotation="true"

    9.2.0 - 2020-06-05

    Added

    • #4224: Support for Union Types for test double code generation

    Changed

    • #4246: Tests that are supposed to have a @covers annotation are now marked as risky even if code coverage is not collected
    • #4258: Prevent unpredictable result by raising an exception when multiple matchers can be applied to a test double invocation
    • The test runner no longer relies on $_SERVER['REQUEST_TIME_FLOAT'] for printing the elapsed time
    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

    You can always request more updates by clicking Bump now in your Dependabot dashboard.

    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 3
  • Update phpunit/phpunit requirement from ~4.0 to ~4.0 || ~8.0

    Update phpunit/phpunit requirement from ~4.0 to ~4.0 || ~8.0

    Updates the requirements on phpunit/phpunit to permit the latest version.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [8.5.6] - 2020-06-15

    Fixed

    • #4211: phpdbg_*() functions are scoped to PHPUnit\phpdbg_*()

    [8.5.5] - 2020-05-22

    Fixed

    • #4033: Unexpected behaviour when $GLOBALS is deleted

    [8.5.4] - 2020-04-23

    Changed

    • Changed how PHPUnit\TextUI\Command passes warnings to PHPUnit\TextUI\TestRunner

    [8.5.3] - 2020-03-31

    Fixed

    • #4017: Do not suggest refactoring to something that is also deprecated
    • #4133: expectExceptionMessageRegExp() has been removed in PHPUnit 9 without a deprecation warning being given in PHPUnit 8
    • #4139: Cannot double interfaces that declare a constructor with PHP 8
    • #4144: Empty objects are converted to empty arrays in JSON comparison failure diff

    [8.5.2] - 2020-01-08

    Removed

    • eval-stdin.php has been removed, it was not used anymore since PHPUnit 7.2.7

    [8.5.1] - 2019-12-25

    Changed

    • eval-stdin.php can now only be executed with cli and phpdbg

    Fixed

    • #3983: Deprecation warning given too eagerly

    [8.5.0] - 2019-12-06

    Added

    • #3911: Support combined use of addMethods() and onlyMethods()
    • #3949: Introduce specialized assertions assertFileEqualsCanonicalizing(), assertFileEqualsIgnoringCase(), assertStringEqualsFileCanonicalizing(), assertStringEqualsFileIgnoringCase(), assertFileNotEqualsCanonicalizing(), assertFileNotEqualsIgnoringCase(), assertStringNotEqualsFileCanonicalizing(), and assertStringNotEqualsFileIgnoringCase() as alternative to using assertFileEquals() etc. with optional parameters
    ... (truncated)
    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 2
  • Add method to call Plates render without $response

    Add method to call Plates render without $response

    Can you add the ability to call Plates render without $this->response->write()?

    For example creating email templates and using Plates for template inheritance. And attach the rendered html to an email body instead of returning a view for a web response.

    Something like this maybe? This would save from instantiating Plates again with the needed settings since we are already.

    public function renderWithNoResonse($name, array $data = [])
    {
      return $this->plates->render($name, $data);
    }
    
    question 
    opened by chriscarpenter12 2
  • chore(deps-dev): Bump squizlabs/php_codesniffer from 3.6.2 to 3.7.0

    chore(deps-dev): Bump squizlabs/php_codesniffer from 3.6.2 to 3.7.0

    Bumps squizlabs/php_codesniffer from 3.6.2 to 3.7.0.

    Release notes

    Sourced from squizlabs/php_codesniffer's releases.

    3.7.0

    PHP 8.1 Language Feature Support

    PHP_CodeSniffer has run correctly under PHP 8.1 since PHP 8 support was added, but it has not supported new 8.1 language features until this release. Version 3.7.0 adds support for the following PHP 8.1 language features:

    • Enums
    • Explicit octal notation
    • Readonly properties
    • Intersection types
    • The never type

    Note: Standards and sniffs included with PHP_CodeSniffer have been updated to support these language features, but external standards and sniffs may need updating before they are able to detect them correctly.

    Changelog

    • Added support for PHP 8.1 explicit octal notation
      • This new syntax has been backfilled for PHP versions less than 8.1
      • Thanks to Mark Baker (@​MarkBaker) for the patch
      • Thanks to Juliette Reinders Folmer (@​jrfnl) for additional fixes
    • Added support for PHP 8.1 enums
      • This new syntax has been backfilled for PHP versions less than 8.1
      • Includes a new T_ENUM_CASE token to represent the case statements inside an enum
      • Thanks to Jaroslav Hanslík (@​kukulich) for the patch
      • Thanks to Juliette Reinders Folmer (@​jrfnl) for additional core and sniff support
    • Added support for the PHP 8.1 readonly token
      • Tokenzing of the readonly keyword has been backfilled for PHP versions less than 8.1
      • Thanks to Jaroslav Hanslík (@​kukulich) for the patch
    • Added support for PHP 8.1 intersection types
      • Includes a new T_TYPE_INTERSECTION token to represent the ampersand character inside intersection types
      • Thanks to Jaroslav Hanslík (@​kukulich) for the patch
    • File::getMethodParameters now supports the new PHP 8.1 readonly token
      • When constructor property promotion is used, a new property_readonly array index is included in the return value
        • This is a boolean value indicating if the property is readonly
      • If the readonly token is detected, a new readonly_token array index is included in the return value
        • This contains the token index of the readonly keyword
      • Thanks to Juliette Reinders Folmer (@​jrfnl) for the patch
    • Support for new PHP 8.1 readonly keyword has been added to the following sniffs:
      • Generic.PHP.LowerCaseKeyword
      • PSR2.Classes.PropertyDeclaration
      • Squiz.Commenting.BlockComment
      • Squiz.Commenting.DocCommentAlignment
      • Squiz.Commenting.VariableComment
      • Squiz.WhiteSpace.ScopeKeywordSpacing
      • Thanks to Juliette Reinders Folmer (@​jrfnl) for the patches
    • The parallel feature is now more efficient and runs faster in some situations due to improved process management
    • The list of installed coding standards now has consistent ordering across all platforms
      • Thanks to Juliette Reinders Folmer (@​jrfnl) for the patch
    • Generic.PHP.UpperCaseConstant and Generic.PHP.LowerCaseConstant now ignore type declarations
      • These sniffs now only report errors for true/false/null when used as values
      • Thanks to Juliette Reinders Folmer (@​jrfnl) for the patch

    ... (truncated)

    Commits
    • a2cd51b Prepare for 3.7.0 release
    • d8313c6 Changelog for #3604
    • fe4dde5 Merge branch 'feature/tokenizer-php-bugfix-double-quoted-strings' of https://...
    • 7f5c55d Merge branch 'php-8.1/tokenizer-php-bugfix-octal-explicit-notation' of https:...
    • e9f6c43 Changelog for #3575
    • 89a588a Merge branch 'feature/squiz-methodscope-handle-unconventional-spacing' of htt...
    • d9cf568 Tokenizer/PHP: bug fix in improved context sensitive keyword support [2]
    • 854aba7 Tokenizer/PHP: bug fix in improved context sensitive keyword support [1]
    • 150c8c4 Tokenizer/PHP/DoubleQuotedStringTest: document how parse errors are handled
    • 99b6dd8 Tokenizer/PHP: bug fix for double quoted strings using ${
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): Bump kahlan/kahlan from 5.1.3 to 5.2.0

    chore(deps-dev): Bump kahlan/kahlan from 5.1.3 to 5.2.0

    Bumps kahlan/kahlan from 5.1.3 to 5.2.0.

    Changelog

    Sourced from kahlan/kahlan's changelog.

    5.2.0 (2022-01-16)

    • Enhancement: Add PHP 8.1 support.
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump projek-xyz/container from 0.5.0 to 0.6.0

    Bump projek-xyz/container from 0.5.0 to 0.6.0

    Bumps projek-xyz/container from 0.5.0 to 0.6.0.

    Release notes

    Sourced from projek-xyz/container's releases.

    v0.6.0

    Features

    • add backward slash to all global functions (9e4e475)
    • add extend method (f911b2f), closes #39
    • change returns type of set() method (3cf9636)
    • change returns value of setContainer() method (0a4dd7a)
    • mark ArrayContainer & PropertyContainer as deprecated (a74109b)
    • mark ContainerInterace as deprecated & remove the use of it (8f743eb)
    • some behavior changes (c7ddba2)
    • unset now accepts spread operator in the argument (d56f12b)
    • excaption: make clearer excaption message (a0fc0b2)
    • resolver: cleanup methods (c63f18c)
    • resolver: simplify resolve method (1c6c606)

    Bug Fixes

    • resolver: fix some unpredictable exceptions & only returns non-callable object as is (60b355d)
    • fix undefined method (6fcee4d), closes #29

    Compare with previous version: https://github.com/projek-xyz/container/compare/v0.5.0...v0.6.0

    Changelog

    Sourced from projek-xyz/container's changelog.

    0.6.0 (2021-05-26)

    Features

    • add backward slash to all global functions (9e4e475)
    • add extend method (f911b2f), closes #39
    • change returns type of set() method (3cf9636)
    • change returns value of setContainer() method (0a4dd7a)
    • mark ArrayContainer & PropertyContainer as deprecated (a74109b)
    • mark ContainerInterace as deprecated & remove the use of it (8f743eb)
    • some behavior changes (c7ddba2)
    • unset now accepts spread operator in the argument (d56f12b)
    • excaption: make clearer excaption message (a0fc0b2)
    • resolver: cleanup methods (c63f18c)
    • resolver: simplify resolve method (1c6c606)

    Bug Fixes

    • resolver: fix some unpredictable exceptions & only returns non-callable object as is (60b355d)
    • fix undefined method (6fcee4d), closes #29
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump kahlan/kahlan from 5.0.8 to 5.1.0

    Bump kahlan/kahlan from 5.0.8 to 5.1.0

    ⚠️ Dependabot Preview has been deactivated ⚠️

    This pull request was created by Dependabot Preview, and you've upgraded to Dependabot. This means it won't respond to dependabot commands nor will it be automatically closed if a new version is found.

    If you close this pull request, Dependabot will re-create it the next time it checks for updates and everything will work as expected.


    Bumps kahlan/kahlan from 5.0.8 to 5.1.0.

    Changelog

    Sourced from kahlan/kahlan's changelog.

    5.1.0 (2021-04-22)

    • Bugfix: Do not show coverage report when the option is set to 0.
    • Break BC: Change exit code on errors to 1 instead of -1.

    5.0.9 (2021-04-15)

    • Bugfix: Doesn't attempt to rebind a callable no declared in a kahlan scope.
    Commits
    • 2a08d7e Create the 5.1.0 release.
    • 9191a5e Do not show coverage report when the option is set to 0.
    • d3f35b2 Change exit code on errors to 1 instead of -1.
    • 151ce67 Create the 5.0.9 release.
    • f1e08ea doesn't attempt to rebind a callable no declared in a kahlan scope.
    • cc986b7 add a test when stubbing a method with a return type hint on a double.
    • 2175d99 add a test when stubbing a method on a double.
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 1
  • Bump kahlan/kahlan from 5.0.8 to 5.0.9

    Bump kahlan/kahlan from 5.0.8 to 5.0.9

    Bumps kahlan/kahlan from 5.0.8 to 5.0.9.

    Changelog

    Sourced from kahlan/kahlan's changelog.

    5.0.9 (2021-04-15)

    • Bugfix: Doesn't attempt to rebind a callable no declared in a kahlan scope.
    Commits
    • 151ce67 Create the 5.0.9 release.
    • f1e08ea doesn't attempt to rebind a callable no declared in a kahlan scope.
    • cc986b7 add a test when stubbing a method with a return type hint on a double.
    • 2175d99 add a test when stubbing a method on a double.
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 1
  • Bump projek-xyz/container from 0.4.4 to 0.5.0

    Bump projek-xyz/container from 0.4.4 to 0.5.0

    Bumps projek-xyz/container from 0.4.4 to 0.5.0.

    Release notes

    Sourced from projek-xyz/container's releases.

    v0.5.0

    Bug Fixes

    • few compatibility issue (28a7b2c)

    Compare with previous version: https://github.com/projek-xyz/container/compare/v0.4.5...v0.5.0

    v0.4.5

    Features

    • upgrade minimum php 7.2 (7c7fe73)
    • upgrade PSR Container 2.0 (4c579db)

    Bug Fixes


    Compare with previous version: https://github.com/projek-xyz/container/compare/v0.4.4...v0.4.5

    Changelog

    Sourced from projek-xyz/container's changelog.

    0.5.0 (2021-03-07)

    Bug Fixes

    • few compatibility issue (28a7b2c)

    0.4.5 (2021-03-07)

    Features

    • upgrade minimum php 7.2 (7c7fe73)
    • upgrade PSR Container 2.0 (4c579db)

    Bug Fixes

    Commits
    • bc3f161 chore(release): 0.5.0
    • 28a7b2c fix: few compatibility issue
    • c8d3a03 chore(release): 0.4.5
    • 7c7fe73 feat: upgrade minimum php 7.2
    • 79f2d7b chore: update gh-actions workflows
    • cd53112 fix: fix returns type hints
    • bcf32bf Merge branch 'psr-container-2'
    • 4c579db feat: upgrade PSR Container 2.0
    • 4bde947 chore: upgrade dependencies
    • 064f399 Merge pull request #28 from projek-xyz/dependabot/composer/kahlan/kahlan-5.0.8
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 1
  • Update phpunit/phpunit requirement from ~4.0 to ~4.0 || ~7.0

    Update phpunit/phpunit requirement from ~4.0 to ~4.0 || ~7.0

    Updates the requirements on phpunit/phpunit to permit the latest version.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [7.5.20] - 2020-01-08

    Removed

    • eval-stdin.php has been removed, it was not used anymore since PHPUnit 7.2.7

    [7.5.19] - 2020-01-06

    Changed

    • eval-stdin.php can now only be executed with cli and phpdbg

    [7.5.18] - 2019-12-06

    Fixed

    • Fixed #3967: Cannot double interface that extends interface that extends \Throwable
    • Fixed #3968: Test class run in a separate PHP process are passing when exit called inside

    [7.5.17] - 2019-10-28

    Fixed

    • Fixed #3727: Problem hidden by PHPUnit's error handler
    • Fixed #3863: \Countable needs to be checked before \EmptyIterator

    [7.5.16] - 2019-09-14

    Fixed

    • Fixed #3801: Class constant as default parameter is undefined
    • Fixed #3834: Trailing slash breaks code coverage on Windows

    [7.5.15] - 2019-08-21

    Changed

    • Implemented #3765: Use ReflectionType::getName() instead of ReflectionType::__toString() (which is deprecated in PHP 7.4)

    [7.5.14] - 2019-07-15

    Fixed

    • Fixed #3743: EmptyIterator instances are not handled correctly by Count and IsEmpty constraints

    [7.5.13] - 2019-06-19

    Fixed

    • Fixed #3722: getObjectForTrait() does not work for traits that declare a constructor
    ... (truncated)
    Commits
    • 9467db4 Prepare release
    • 0f609d2 Delete eval-stdin.php
    • 4263f76 Prepare release
    • 2076dc7 Enhancement: Use actions/checkout@v2
    • 6aab040 Lets waste three more characters on a solution for a problem that should not ...
    • 33585d9 Hopefully prevent execution of this script in a webserver context.
    • 7a46cf1 Fix: Avoid using master for GitHub actions
    • fcf6c4b Prepare release
    • 2902560 Update ChangeLog
    • 773be5e Ignore .psalm directory on PHPUnit 7.5 branch
    • Additional commits viewable in compare view

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 1
  • chore(deps): Bump slim/slim from 4.10.0 to 4.11.0

    chore(deps): Bump slim/slim from 4.10.0 to 4.11.0

    Bumps slim/slim from 4.10.0 to 4.11.0.

    Release notes

    Sourced from slim/slim's releases.

    4.11.0

    Total issues resolved: 27

    Changelog

    Sourced from slim/slim's changelog.

    Changelog

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
Releases(v0.2.2)
Owner
Projek XYZ
Open-Source Codes by @feryardiant for @creasico
Projek XYZ
A curated list of awesome tutorials and other resources for the Slim micro framework

Awesome Slim A curated list of awesome tutorials and other resources for the Slim micro framework Table of Contents Essentials Tutorials Packages and

Sawyer Charles 466 Dec 8, 2022
The Slim PHP micro framework paired with Laravel's Illuminate Database toolkit.

Slim & Eloquent The Slim PHP micro framework paired with Laravel's Illuminate Database toolkit. Getting started # Download composer curl -s https://ge

Kyle Ladd 111 Jul 23, 2022
Integration testing helpers for the Slim Framework

Slim Test Helpers Integration testing helpers for the Slim Framework 3 For a full example, please see the companion repo at there4/slim-unit-testing-e

There4 60 Oct 26, 2022
Framework X – the simple and fast micro framework for building reactive web applications that run anywhere.

Framework X Framework X – the simple and fast micro framework for building reactive web applications that run anywhere. Quickstart Documentation Tests

Christian Lück 620 Jan 7, 2023
Framework X is a simple and fast micro framework based on PHP

Framework X is a simple and fast micro framework based on PHP. I've created a simple CRUD application to understand how it works. I used twig and I created a custom middleware to handle PUT, DELETE methods.

Mahmut Bayri 6 Oct 14, 2022
🍸A Slim Web Application Template

Gracili What is Gracili? Gracili is a PHP Application Template to quickly create a new Project. Using this template can save you a lot of time. With t

Björn Pfoster 1 May 12, 2021
Pug template engine adapter for Slim

Pug for Slim For details about the template engine see phug-lang.com Installation Install with Composer: composer require pug/slim Usage with Slim 3 u

Pug PHP 5 May 18, 2022
A tiny, yet powerful, PHP micro-framework.

Equip Framework A tiny and powerful PHP micro-framework created and maintained by the engineering team at When I Work. Attempts to be PSR-1, PSR-2, PS

Equip 118 Jun 24, 2022
An extensible micro-framework for PHP

What is Flight? Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications. requi

Mike Cao 2.5k Dec 30, 2022
A resource-oriented micro PHP framework

Bullet Bullet is a resource-oriented micro PHP framework built around HTTP URIs. Bullet takes a unique functional-style approach to URL routing by par

Vance Lucas 415 Dec 27, 2022
A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast! Condensed in a single ~65KB file

Bong Cosca 2.6k Dec 30, 2022
a micro mvc framework for php

micro-mvc-php a micro mvc framework for php Config your Web url in .env . lifecycle All request proccess by index.php Autoload files include in bootst

Amiranbari 6 Jul 9, 2022
⚡ Micro API using Phalcon Framework

Micro App (Rest API) ⚡ Micro API using Phalcon PHP Framework. PHPDocs I. Requirements A Laptop ?? Docker (docker-compose*) Makefile (cli) II. Installa

Neutrapp 7 Aug 6, 2021
Mutexes for Micro-Framework HLEB

Use of mutexes in a project (including projects based on the HLEB micro framework) The use of mutexes is worthwhile in cases, when access to any code

Foma Tuturov 1 Oct 11, 2022
Lite & fast micro PHP framework that is **easy to learn**.

Utopia Framework is a PHP MVC based framework with minimal must-have features for professional, simple, advanced and secure web development.

utopia 139 Dec 30, 2022
Slim Framework - Prerequisite Checker

Slim Framework - Server Configuration Checker Upload the file check.php to your webserver Browse to the file: https://example.com/check.php Check the

Daniel Opitz 6 Aug 30, 2022
REST APIs using Slim framework. Implemented all CRUD operations on the MySql database

PHP REST API using slim framework and CRUD operations ?? Hi there, this is a simple REST API built using the Slim framework. And this is for the folks

Hanoak 2 Jun 1, 2022
A Slim PHP MVC framework built just for fun!

Aura Framework A Slim PHP MVC framework built just for fun! en: Note: This repository only contains the core code of the Aura framework. If you want t

Murilo Magalhães Barreto 2 Dec 16, 2021
Slim Framework skeleton application with MVC Schema

Slim Framework skeleton application with MVC Schema

JingwenTian 9 Apr 29, 2021