Monthly Archiv: September, 2020

Dframe PHP CSRF Token Library

Package:
Dframe PHP CSRF Token Library
Summary:
Generate tokens to protect against CSRF attacks
Groups:
PHP 5, Security
Author:
Slawomir Kaleta
Description:
This package can generate tokens to protect against CSRF attacks...

Read more at https://www.phpclasses.org/package/11797-PHP-Generate-tokens-to-protect-against-CSRF-attacks.html#2020-09-12-02:23:42

PHP on the road to the 8.0.0 release

Version 8.0.0 Beta 3 is released. It's now enter the stabilisation phase for the developers, and the test phase for the users.

RPM are available in the remi-php80 repository for Fedora  31 and Enterprise Linux  7 (RHEL, CentOS), or in the php:remi-8.0 stream,  and as Software Collection in the remi-safe repository (or remi for Fedora)

 

emblem-important-4-24.pngThe repository provides development versions which are not suitable for production usage.

Also read: PHP 8.0 as Software Collection

emblem-notice-24.pngInstallation : read the Repository configuration and choose installation mode.

Replacement of default PHP by version 8.0 installation, module way (simplest way on Fedora and EL-8):

dnf module disable php
dnf module install php:remi-8.0
dnf update

Replacement of default PHP by version 8.0 installation, repository way (simplest way on EL-7):

yum-config-manager --enable remi-php80
yum update php\*

Parallel installation of version 8.0 as Software Collection (recommended for tests):

yum install php80

emblem-important-2-24.pngTo be noticed :

  • EL8 rpm are build using RHEL-8.2
  • EL7 rpm are build using RHEL-7.8
  • lot of extensions are also available, see the PECL extension RPM status page
  • follow the comments on this page for update until final version.

emblem-notice-24.pngInformation, read:

Base packages (php)

Software Collections (php74)

Mezon PHP Social Network Platform Integration

Package:
Mezon PHP Social Network Platform Integration
Summary:
Access APIs of social networks and get user data
Groups:
PHP 5, Social Networking, User Management, Web services
Author:
Alexey Dodonov
Description:
This package can access APIs of social networks and get user data...

Read more at https://www.phpclasses.org/package/11791-PHP-Access-APIs-of-social-networks-and-get-user-data.html#2020-09-11-07:51:49

Weekly News for Designers № 557

Envato Elements

Custom CSS Styles for Form Inputs and Textareas – Learn the process behind creating custom form inputs that look identical across major browsers.
Example from Custom CSS Styles for Form Inputs and Textareas

Beyond Media Queries: Using Newer HTML & CSS Features for Responsive Designs – Go beyond the traditional methods to make your site responsive.
Example from Beyond Media Queries: Using Newer HTML & CSS Features for Responsive Designs

Blade UI Kit – A set of open-source, renderless components to utilize in your Laravel Blade views.
Example from Blade UI Kit

How to Improve Your Communication With Clients – Three simple ways you can improve your communication and get down to the nitty-gritty with clients.
Example from How to Improve Your Communication With Clients

Component Driven User Interfaces – Dive into the development and design practice of building user interfaces with modular components.
Example from Component Driven User Interfaces

The 15 Best Light Leak Effects Photoshop Action Sets – Use this collection of Photoshop actions to add warmth to your photos.
Example from The 15 Best Light Leak Effects Photoshop Action Sets

The Ancient Art of UX – What one designer learned about digital design from an HVAC expert.
Example from The Ancient Art of UX

Custom bullets with CSS ::marker – Utilize this CSS technique to style up your HTML lists.
Example from Custom bullets with CSS ::marker

20 Free Photoshop Layer Styles for Creating Beautiful Text Effects – Add some awesome sauce to your text with this collection of special effects.
Example from 20 Free Photoshop Layer Styles for Creating Beautiful Text Effects

Building Website Headers with CSS Flexbox – Tips and tricks for building a great header for your site with Flexbox.
Example from Building Website Headers with CSS Flexbox

lookup.design – Find your inspiration with this hand-picked library of great designs.
Example from lookup.design

filters.css – A tiny CSS library for applying color filters to images and more.
Example from filters.css

Diagonal Thumbnail Slideshow Animation – A tutorial for crafting a simple slideshow with tilted thumbnails and large titles that animate when navigating.
Example from Diagonal Thumbnail Slideshow Animation

CC:SS – A companion on the journey to your next CSS-in-JS and/or design system solution.
Example from CC:SS

Chill Out with These Calming CSS & JavaScript Code Snippets – Examples of how code can create some of those good vibrations.
Example from Chill Out with These Calming CSS & JavaScript Code Snippets

Stitches – A modern styling library with server-side rendering.
Example from Stitches

How to Create a Simple Gutenberg Block Pattern in WordPress – Block patterns are a game-changer. Learn how to create your own with this tutorial.
Example from How to Create a Simple Gutenberg Block Pattern in WordPress

Cost Calculator Builder – A free WordPress plugin for creating cost estimate forms.
Example from Cost Calculator Builder

The post Weekly News for Designers № 557 appeared first on Speckyboy Design Magazine.

Building the next generation react/http PSR-15 adapter

Two and a half years ago I wrote how to use RecoilPHP to create a PSR-15 middleware adapter for react/http using coroutines, monkey patching, and autoloader hijacking. Today there is a followup on that without any coroutines, monkey patching, and autoloader hijacking. But using ext-parallel instead, react-parallel/psr-15-adapter was created.

Needle Threads Sewing Thread Eye Of A Needle

Site News: Blast from the Past – One Year Ago in PHP (09.10.2020)

Here's what was popular in the PHP community one year ago today:

Ketting v6: Using Hypermedia APIs with React

We just released Ketting 6. This is the accumulation of about a year of learning on how to better integrate REST APIs with frontend frameworks, in particular React.

It’s packed with new features such as local state management, new caching strategies, (client-side) middleware support and change events. It’s also the first release that has some larger BC breaks to make this all work.

Releasing Ketting 6 is a big personal milestone for me, and I’m really excited to unleash it to the world and see what people do with. A big thank you to all the people that beta tested this in the last several months!

What’s Ketting?

In short: Ketting is a generic REST client for Javascript. You can use it for pushing JSON objects via HTTP, but the richer your API is in terms of best practices and standard formats, the more it can automatically do for you.

It has support for Hypermedia formats such as HAL, Siren, Collection+JSON, JSON:API and can even understand and follow links from html.

It’s often said that REST (and Hypermedia APIs) is lacking a good generic client. GraphQL has a lot of advantages, but a major one is tooling. Ketting aims to close that gap.

More information can be found on Github.

React support in Ketting 6

Ketting now has a separate react-ketting package that provides React bindings to Ketting. These bindings should look very familiar if you’ve used Apollo Client in the past.

Lets dive into an example:

Lets assume you have a REST api that has an ‘article’ endpoint. This returns something like:

{
  "title": "Hello world",
  "body": "..."
}

This article is retrieved with GET, and updated with PUT, this is how you would display it:

import { useResource } from 'react-ketting';


export function Article() {

  const { loading, error, data } = useResource('https://api.example/article/5');

  if (loading) {
    return <div>Loading...</div>;
  }

  if (error) {
    return <div class="error">{error.message}</div>;
  }

  return <article>
    <h1>{data.title}<

Truncated by Planet PHP, read more at the original (another 9131 bytes)

Powered by Gewgley