Ana Sayfa / Uygulama Şablonları / Bazaar - Flutter Classified Marketplace

Bazaar - Flutter Classified Marketplace

PHP API, Socket.IO sohbeti, yönetici paneli, Firebase ve abonelikler içeren Flutter ilan pazaryeri uygulaması.

  • Yayın tarihi12 Temmuz 2026
  • Paket içeriği.php, .css, .html, .sql, .swift, .apk, .java
  • Son güncelleme12 Temmuz 2026
  • Canlı demoVar
Bazaar - Flutter Classified Marketplace

Overview

Bazaar - Flutter Classified Marketplace

Bazaar is a classified marketplace mobile application built with Flutter and supported by a PHP REST API, MySQL/MariaDB database, Redis, and a Node.js Socket.IO realtime server. It is designed for publishing and browsing local classified listings with categories, locations, user accounts, chat, notifications, and admin-managed marketplace content.

Product Overview

The package includes the Flutter Android and iOS source code, PHP API source code, Node.js realtime server source code, SQL database file with safe demo data, demo media folders, and buyer documentation. The existing documentation covers installation, backend configuration, Flutter configuration, Firebase setup, Redis setup, Node server setup, troubleshooting, changelog, and license information.

Main Purpose

Bazaar provides a ready source-code base for a classified ads marketplace where users can browse listings, publish ads, upload images, save favorites, comment on listings, chat with other users, and manage their profile. Super admin users can access dashboard screens for managing the marketplace data from the Flutter application.

Mobile Application

  • Flutter source code for Android and iOS.
  • Home feed for classified listings.
  • Search and category/location filtering.
  • Ad publishing and editing with title, description, price, phone, location, category, subcategory, city, neighborhood, and images.
  • Ad details, comments, likes/favorites, user profiles, followers, and personal listing management.
  • Profile settings, password changes, statistics, dark mode setting, help questions, and language selection.
  • Guest-style entry flow is present in the Flutter source.

Backend and REST API

The PHP backend provides API controllers for authentication, home feed data, listing actions, image uploads, user chat records, settings, subscriptions, dashboard records, dashboard CRUD operations, and realtime socket bridging. The API uses a shared API key header and bearer token authentication for protected user actions.

Admin Dashboard

The included admin functionality is implemented as Flutter dashboard screens backed by PHP API endpoints. Dashboard features include overview data, users, ads, comments, questions, notifications, cities, neighborhoods, main categories, subcategories, policies, and subscription type management.

Realtime Functionality

The package includes a Node.js Socket.IO server for realtime app events and chat delivery. Redis is used by the PHP API and Node server for token/socket mapping and event delivery. The Flutter app includes socket connection handling and realtime chat listeners.

Authentication

  • User registration and login with email or phone credentials.
  • Google Sign-In support with a configurable Google web client ID.
  • Password reset/change flows in the Flutter app and PHP API.
  • Bearer token generation and Redis token synchronization.
  • Account state checks for active, blocked, and deleted users.

Multilingual Support

The Flutter application includes language files and a language selection screen. Confirmed translation file codes are Arabic, English, Spanish, French, Hindi, Indonesian, Turkish, Urdu, German, Italian, and Kurdish.

Notifications

Firebase Cloud Messaging integration is included in the Flutter app. The dashboard and API include notification records and notification receiver management. Buyers must configure their own Firebase project and app-specific Firebase files.

Subscriptions

The project includes in-app purchase subscription support using product IDs stored in the database. The inspected subscription flow uses Android product IDs and a PHP endpoint that verifies Google Play purchases through a Google Play service account before applying the subscription to the user account.

Main Technologies

  • Flutter and Dart.
  • PHP 8 API backend with Composer autoloading.
  • MySQL or MariaDB database.
  • Node.js, Express, Socket.IO, and Redis.
  • Firebase Core and Firebase Cloud Messaging.
  • Google Sign-In and Google Play subscription verification.

Included Source Files

  • Flutter_App: mobile app source code and assets.
  • Backend/PHP_API: PHP API backend source code.
  • Backend/Node_Server: Socket.IO realtime server source code.
  • Database: MySQL/MariaDB SQL file with safe demo data.
  • Backend/Legacy_Media: demo media folders for listing, chat, category, and profile images.
  • Documentation, Installation_Guide, Changelog, and License_Information.

Suitable Use Cases

  • Local classified ads marketplace.
  • Multi-category listing application.
  • Community marketplace with chat between users.
  • Location-based product or service discovery app.
  • Admin-managed mobile marketplace project.

Documentation and Configuration

The included documentation explains database import, PHP API configuration, upload folder pl

Features

Features

Flutter Mobile Application

  • Complete Flutter source code for Android and iOS.
  • Home feed for classified ads.
  • Listing details screen with images, seller information, comments, and actions.
  • Publish and edit ads with title, description, price, phone, location, category, subcategory, city, neighborhood, and images.
  • Image selection and upload support for ads and profile media.
  • Search screen and filter bottom sheet.
  • Favorites/likes for ads.
  • Comment listing and comment posting.
  • My ads screen for user-owned listings.
  • Follower and following screens.
  • Profile information editing and profile image update.
  • Password change and password reset flow.
  • Dark mode setting stored with local app storage.
  • Statistics screen for user account data.
  • Guest-style browsing flow in the app startup logic.

Marketplace Data

  • Main categories and subcategories.
  • Cities and neighborhoods.
  • Location fields with latitude and longitude support.
  • Configurable listing filters from the PHP backend.
  • Filter configuration supports order, labels, backend keys, input type, required state, values, and option images where configured.
  • Safe demo database content for users, ads, categories, cities, neighborhoods, comments, likes, chats, notifications, policies, questions, and subscription types.

Authentication and Accounts

  • User registration through the PHP API.
  • Email or phone login with password.
  • Google Sign-In support with configurable web client ID.
  • Email OTP package configured in Flutter with buyer-replaceable sender values.
  • Bearer token creation for authenticated API requests.
  • Redis synchronization for auth token lookup by the realtime server.
  • Blocked and deleted user state checks.
  • Account deletion endpoint in settings API.

Realtime Chat and Socket Features

  • Node.js Socket.IO realtime server included.
  • Redis-backed token and socket mapping.
  • Realtime event bridge between PHP API and Node server.
  • User chat rooms backed by database records.
  • Text chat and image chat message support in the Flutter chat UI.
  • Message state handling for waiting, sent, and received states.
  • Older message loading for chat rooms.

Notifications

  • Firebase initialization in the Flutter app.
  • Firebase Cloud Messaging controller included.
  • Local notification package included for device notifications.
  • Notification records and receiver tables in the database.
  • Dashboard notification management screens.
  • Single and multi-recipient notification API logic in dashboard records controller.

Admin Dashboard

  • Flutter dashboard area for super admin users.
  • Dashboard overview screen.
  • User list, creation/update, identity check, and user state update actions.
  • Ad management and ad state update actions.
  • Comment management and comment deletion.
  • Question/help request list and read-state update.
  • Notification creation and deletion.
  • Main category and subcategory management.
  • City and neighborhood management.
  • Policy management.
  • Subscription type management.

Subscriptions and Purchases

  • Subscription type model and database table included.
  • Flutter in-app purchase package integrated for subscription products.
  • Android product IDs are loaded from subscription type data.
  • Google Play purchase verification endpoint in the PHP API.
  • Google Play service account configuration path included in backend config.
  • Purchase token and order ID duplication checks before applying a subscription.
  • User subscription status and subscription details stored in the database.

Backend and API

  • PHP API backend with PSR-4 autoloading.
  • API key validation through request headers.
  • Bearer token authentication for protected endpoints.
  • MySQL/MariaDB database connection through PDO.
  • Configurable PHP timezone and MySQL session time zone.
  • Image storage helper for ad images, chat photos, user photos, main category photos, and subcategory photos.
  • Language resource files for backend responses in Arabic and English.
  • Apache htaccess routing included.
  • Nginx rewrite example included in documentation.

Multilingual Support

  • Translation files included under Flutter assets.
  • Language selection screen included.
  • Supported language codes: ar, en, es, fr, hi, id, tr, ur, de, it, and ku.
  • Right-to-left layout support through the localization package direction builder.

Configuration Options

  • PHP API base URL and path.
  • Shared API key used by Flutter, PHP, and Node.
  • Datab

Requirements

Requirements

Flutter Application

  • Flutter SDK with Dart compatible with ^3.6.1, as defined in Flutter_App/pubspec.yaml.
  • Android Studio or Visual Studio Code with Flutter tooling.
  • Android SDK for Android builds.
  • Android Gradle Plugin 8.9.1 and Gradle 8.12 are configured in the Android project.
  • Xcode and CocoaPods for iOS builds.
  • Buyer-created Android signing keystore and android/key.properties for release builds.
  • Buyer-created Firebase project with Cloud Messaging enabled.
  • google-services.json for Android Firebase configuration.
  • GoogleService-Info.plist for iOS Firebase configuration.
  • Regenerated Flutter_App/lib/firebase_options.dart for the buyer Firebase project.
  • Google Sign-In web client ID if Google login remains enabled.

PHP API Backend

  • PHP 8.0 or newer, confirmed by Backend/PHP_API/composer.json.
  • Composer 2.
  • PHP extensions: pdo_mysql, json, mbstring, openssl, curl, and session.
  • MySQL or MariaDB database. The included SQL dump was exported from MariaDB 10.4.32, but the documentation does not require that exact version.
  • Apache with mod_rewrite enabled, or Nginx with equivalent rewrite rules to route requests to public/index.php.
  • Writable public media folders for ad_images, chats_photos, user_photos, main_category_photos, and sub_category_photos.
  • Buyer-owned domain and SSL certificate for production API and media URLs.
  • Buyer-defined shared API key used consistently by Flutter, PHP, and Node.
  • Buyer database host, database name, database user, password, charset, and port values.

Node.js Realtime Server

  • Node.js 18 or newer.
  • npm.
  • Redis server reachable by Node.js and PHP.
  • PM2 for production process management, as documented in the included Node server README.
  • Configured environment values for PORT, PHP_API_BASE_URL, API_KEY, REDIS_HOST, REDIS_PORT, and REDIS_PASSWORD.
  • Socket port access or a reverse proxy configuration for production realtime traffic. The documented default socket port is 65535.

Redis

  • Redis server for authentication token mapping, socket mapping, and realtime event delivery.
  • Redis host, port, password, and TLS settings configured in Backend/PHP_API/core/Config.php and Node server environment values.
  • The PHP backend can use the PHP Redis extension when available; otherwise it uses Predis from Composer.

Database

  • MySQL/MariaDB database user with permission to create/import tables and insert demo data.
  • Import of Database/database_with_demo_data.sql.
  • Optional import or verification of the included google_play_subscriptions table if working with the separate subscription SQL file.
  • Database timezone setting reviewed through APP_TIMEZONE and DB_TIME_ZONE in PHP backend configuration.

Firebase and Google Services

  • Firebase project with Android and iOS apps added using the buyer application ID and bundle identifier.
  • Firebase Cloud Messaging enabled.
  • Google Sign-In configured with the buyer web client ID if enabled.
  • Google Play Console subscription products if Android subscriptions are enabled.
  • Google Cloud service account JSON with permission to verify Google Play subscriptions.
  • Configured GOOGLE_PLAY_PACKAGE_NAME and GOOGLE_PLAY_SERVICE_ACCOUNT_JSON_PATH in backend configuration.

Other Credentials and Configuration

  • Buyer-owned SMTP values if the email OTP flow is used.
  • Buyer-owned provider/payment placeholder values in Backend/PHP_API/core/ContactConfig.php if those placeholders are used by a customized deployment.
  • Production app name, package name, bundle identifier, icons, splash assets, and store metadata configured by the buyer.
  • Server file permissions suitable for PHP, Composer files, and media upload folders.